Colour coded category tags

Posted in: Newspaper
Post count: 30

Hi all,

Is it possible to set the category box colours (currently black) in this latest story block:

To the same colours I set here in the setting (ie. Junior posts are green boxed):

Instead of them just being those colours in the single post page?

Thanks

Andy

Post count: 27744

Hello Andy,

If you referring to setting a color for each category, you can check this topic => https://forum.tagdiv.com/topic/mobile-theme-duplicate-titles-missing-categories-category-tag-colour/

Thank you!

Post count: 30

aha!!..thanks Anamaria,

OK I did that, like this…

I’m sure it worked briefly but now nothing has changed, they are all still black?

What did I miss?

Thanks

Post count: 27744

Hi,

Can you provide the link to your website? Please delete the code, I will investigate and if necessary I’ll give you another code.
Also, did you check this link and the code -> https://forum.tagdiv.com/topic/category-color-and-filtering-options/?

Thank you!

Post count: 30

Sure, I deleted it, site is https://gateway.theabbey.co.uk

Yes I did see that code on that link too, think I just about copied it but it’s still not playing nicely.

Thanks

Post count: 27744

Hi,

I just did a test for the “seniors” category and the code works -> https://i.imgur.com/0sRjAtC.jpg
.td-module-image a[href$="/seniors/"], .td-meta-info-container a[href$="/seniors/"], .td-module-container a[href$="/seniors/"], .single .td-category a[href$="/seniors/"], .tdb_single_categories a[href$="/seniors/"] {
background-color: red;
}

You can change only the category and color and use this code for each category.

Thank you!

Post count: 30

mmm…yes worked for me too, now I just added same code under it but with juniors as the category. The senior ones stayed pink, the juniors stayed black (not go green).

Post count: 27744

Hi,

This is a strange situation because I made a test and works https://i.imgur.com/Y44Fy9t.jpg
.td-module-image a[href$="/juniors/"], .td-meta-info-container a[href$="/juniors/"], .td-module-container a[href$="/juniors/"], .single .td-category a[href$="/juniors/"], .tdb_single_categories a[href$="/juniors/"] {
background-color: #25796a;
}

Thanks!

Post count: 30

Ah thanks, I think Ive sussed it, it didn’t like me pasting in from Indesign (I used it to “find and change” the category names, then pasted it in. It must have entered some odd characters. Sorry, my bad.

Thanks for all the help

Post count: 27744

Hello,

I’m glad that in the end, you managed to achieve what you want.

Have a nice day!

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