A color for each category – how can I do it?

Posted in: Newspaper
Post count: 13

Hi Everybody,
just a small and easy question: How can I assign to a category a color so the Category tags over the images will have same color for the same categories?

thanks a lot
Valerio

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/1ilmCmyTZhh

.td-module-image a[href$="/video/"]{
background-color: green;
}

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

Thank you!

Post count: 13

Hi Calin and thanks a lot for your reply :=)

I tried your advise, but is not working, I used also:
.td-post-category a[href$=”/travel/”]{ background-color: green!important; }
because i saw this was the class of the backgroud color, but is also not working.
can you help me?

when we find a way this will be perfect for me 🙂
thanks a lot
Val.

Post count: 35449

Hi,

Please provide a link were I can make some inspects, in this way I will be able to provide you the right custom css.

Thank you for your understanding!

Post count: 13
Post count: 13

I also have the needs to change the container width to 1370px (actually is 1080)
I found no option in the theme panel, can you give me also a tipp how to do it?

thanks a lot! :=)
ciao ciao
Val

Post count: 35449

Hi,

In order to change the the width of row you need to edit the page/template with tagDiv Composer click on row and stretch it to 1400px -> https://www.screencast.com/t/5fL7QBy0Bqy

Thank you!

Post count: 13

Hi Calin,

thanks for the answer!
there is any way to set the 1400px as row stretch “Default”, so I dont have to change any row in any page I already did?

and what about the articles? (i modified die CSS .td-container, .tdc-row {width: 1400px;})
other options?

Big Grid 3 is not resizing is that normal?
http://fabridea-test.de.fc-host61.de/entrepreneurs-club/

thanks a lot
Valerio

Post count: 35449

Hi,

Unfortunately this is the only way to do it for pages ( if you force with css the blocks will break ).
For article/post and category you can use some template from TagDiv Cloud Library stretch the template and apply that single post template on post ( global in the panel -> https://www.screencast.com/t/Ni3iAlcwjf7 ) and all post/article or category which will have that template set will be stretch.

If you stretch the content you need to use flex blocks or full blocks, only those will stretch to full with that you set.

Thank you!

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