How can i show the category of each post on the thumbnail of the post?

Posted in: Newspaper
Post count: 107

I want the thumbnail of my articles carry the category tag to which they belong. How can I do this?

Post count: 107

Please help!

Post count: 35449

Hi,

If you want to show the category post to all posts please make sure that you have enable this option in theme panel -> https://www.screencast.com/t/rBa1xP7csXo
Also please check this documentation:
-> Global settings -> https://forum.tagdiv.com/general-settings/
-> Category tag on modules/blocks – https://forum.tagdiv.com/category-tag-on-modulesblocks/
-> Post templates – https://forum.tagdiv.com/post-templates-2/

Thank you!

Post count: 107

can i also change the color of the tags?

Post count: 35449

Hi,

If you want to change the color for tags on posts, this can be achieve using custom css or using a single post template from tagDiv Cloud Library
-> https://www.screencast.com/t/iQQbXa3F

Create custom code with the browser’s Inspector or the Live CSS Box – https://tagdiv.com/how-to-create-custom-code-in-newspaper-theme/

Thank you!

Post count: 107

Thanks for the reply. But what I meant was that can I keep different colors for my categories? I want the category tag on the modules/blocks to have a different color for each category. Right now it is black everywhere.

the website is thewrestlepost.com if you want to check!

Cheers!

Post count: 35449

Hi,

You want you can use a custom css that do the same thing.
You can try this custom css for color on individual categories
-> https://www.screencast.com/t/hnPXiMEJcLS9

All you need to do is to change the category in code and the background color will apply on that category.

.td-module-image a[href$="/news/"],
.td-meta-info-container a[href$="/news/"]
{
background-color: green;
}
.td-module-image a[href$="/nxt/"],
.td-meta-info-container a[href$="/nxt/"]
{
background-color: blue;
}
.td-module-image a[href$="/wweresults/"],
.td-meta-info-container a[href$="/wweresults/"]
{
background-color: red;
}

Set the custom css in Newspaper>Theme panel>Custom code>Custom css

Thank you!

Post count: 16

I have followed your instructions but the labels do not change as in your example.
Do I have to change anything else?
thanks a lot

Post count: 35449

Hi studio0101,

Did you change the category name in the code for example the “news” with one of your category, if yes and this is still not working, please provide me a link to your website and I will provide a better example.

Thank you!

Post count: 16

thanks a lot !!!!!!

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