Creating my own category template

Hi there guys

I need to create different templates pages for different categories.
My goal is to use cloud template page for different categories.

For example I’d like to get

  • page A > category A
  • page B > category B & C

How can I achieve this ?
Thanks

Hello @vlad,

Thanks for writing in! You can create what you have in mind by utilizing TheGrid or Essential grid plugin. With any of these plugins, you can display post items in a specific category or set of categories. You can install the plugin by going to X/Pro > Validation > Extensions.

To learn more about any of these plugins, please check out this documentation:

Best Regards.

1 Like

Thanks ruenel !
In fact I’d like to create a complete layout including optin, videos + posts corresponding to this category.
Maybe essential grid can handle posts but for other type of content I want to add I do not think this can help me.
Any idea about another solution ?
thanks

Hi Vlad,

That would require custom development in which we can’t provide here in the forum. But the customization standard should still similar or the same with Wordpress template similar to this https://www.wpbeginner.com/wp-themes/how-to-create-category-templates-in-wordpress/, but you’ll need to follow file and template structure of the theme in which you can check it here https://theme.co/docs/best-practices

For example, you may follow the naming structure as category-slug.php, but you’ll have to use x_get_view() to get or include template parts within that template. You can start with copying index.php into category-slug.php, and one by one, copy their corresponding template parts while editing the code to match the new template names.

Thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.