Change the title default colour inside each module.

Posted in: Newspaper
Post count: 27

I want to change the titles colour of each module from default to a custom colour.
The only way I see this being possible is by adding a custom css class to the “a href” tag, but I can’t find the place where the link is built nor any other way to change the title colour without changing the titles of all blocks/modules.
Any clues? Thank you.

Post count: 27

After several hours around this issue, it’s always when we decide to get help that the solution presents itself.
It’s not an easy task but it’s done. Apparently the modules title/link is built in td_modules.php.
To change the title colour for each module, one solution could be to duplicate the get_title() function for each colour we would be using i.e: get_title_pink(); and inside the “a href” tag add the inline css or with a css class.
Then inside each td_module_x.php we just need to replace the calling function get_title() to the new name i.e: get_title_pink();
This is just a quick explanation that can be useful to someone else in the future.
Thanks!

Post count: 22421

Hi,
There is also a css alternative for this if you add an extra class to the row in visual composer, then you can target a specific block if you want. You can change the color for each module like so: http://screencast.com/t/Bg8gEdEO
You can do this for every module. Simply change the module number in the code and it will apply to that specific module.
Thank you!

Post count: 27

Thank you for the add in.

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