Can I show different header on posts based on category?

Posted in: Newspaper
Post count: 9

1. I want to use different header templates on posts based on the category of the post? Is that possible?
2. If not, is there a workaround? Some kind of sub header that can change depending on the category of the post?

Post count: 35449

Hi,
You can achieve this if you are using a cloud templates. For example you can set a cloud header as individual on category cloud template from tagDiv Cloud library -> https://i.imgur.com/G4YnfT7.png -> https://i.imgur.com/p8dtees.jpg -> set an individual header -> https://i.imgur.com/NOpScB9.png after that set the category template on the category -> https://i.imgur.com/jR1MDOy.png
Also you can duplicate de cloud templates -> https://i.imgur.com/XOIl0Np.png and using tagDiv Composer change only the cloud header.
Thank you!

Post count: 9

Hi
I created a single post template with the header I wanted and then set that template at “Post Cloud Library Template” in the category i wanted another header for.
That seemed to work! Is that what you meant?
I get a strange error though: The posts loose their title!
Is the title supposed to be included in “Single Post Content”? Because I cant find something called “Single Post Title” to add!

Post count: 35449

Hi,
Yes, something like that.
If is a single post template, then it must be a page title element -> https://i.imgur.com/7qJNtQO.jpg -> https://i.imgur.com/XtWGBln.jpg
Thank you!

Post count: 9

Thank you very much for this! This is a very good feature for the theme!
A question related to how this works:
Lets say I make a post belonging to category A and B.
And I have a post template for both categories.
Which post template will the theme use? Is it possible for me to decide?

Post count: 35449

Hi rs_cwi, normal you can set a primer category -> https://i.imgur.com/t2tqmSP.png and that should be the post template that should apply -> https://i.imgur.com/zQ4dtbw.png
Hope this will help!
Thank you!

Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Newspaper’ is closed to new topics and replies.