Change 'text with title' color

Posted in: Newsmag
Post count: 11

Hello,

I am trying to change the color of the text in the ‘text with title’ element and it is not working.The background color changes though. I tried to change the text color via ‘text color’ in the settings but nothing changes. Then I was trying to change it via code.
My text title is h2 and the text below h4. All within the module ‘text with title’ of course.

CSS Code:

.td_mod_wrap h4 {
color: white!important;
font-weight: 500!important;
}

  • This topic was modified 8 years by Jasmin.
Post count: 20688

Hi,

You could use a code like this one for example
https://www.screencast.com/t/HxnQVfHp
It will change the color of the font in a text with title element as you wish. Use the color you want and enter it in Theme panel->Custom CSS

.td_block_text_with_title h4 {
color: yellow;
}

Thanks

Post count: 11

Hello,

this code unfortunately doesn’t work, I’ve tried it also before. I need to also change font-weight and I haven’t managed to find a code that worked.

Post count: 20688

Hi,

That code will work, if you have h2 and h4 in the text with title element with that code you can change the color of the font and also font-weight
https://www.screencast.com/t/0cQgnrls88

.td_block_text_with_title h4 {
color: yellow;
font-weight: 100;
}
.td_block_text_with_title h2 {
color: blue;
font-weight: 100;
}

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