Custom template for specific category

Posted in: Newsmag
Post count: 90

Hello, considering the latest version of the theme, I would like to have a custom template for a single category of my blog. In this category I want to show one row with 3 “block 14” (fetching articles from another specific category) at the top after the menu, and then load the normal template specified in the theme panel for that category.

Is this possible?

Post count: 6600

Hi,

Unfortunately the category page template can’t be built via VC page builder therefore you can’t use blocks there as blocks can be added via page builder only or as widgets on sidebars.
You could do this by alter the category template and adding a condition as “when category X is called” your custom layout and blocks load instead of the loop posts or besides them. You can use the do_shortcode() functions to add the block on the category page and customize them via VC page builder.
Other way would be to use the page builder and create the page using VC then add a menu item and set the custom page to it.
Either way this would not be easy and you’d need custom modifications to theme’s code so I suggest you get a freelancer or hire a developer to do this for you if you don’t know how to do it by yourself.

Thanks

Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.