Hierarchy tag

Posted in: Newspaper
Post count: 285

Hi guys,
Please give me a clue from where I can modify only the <h> tag from related posts titles.
I look into includes/modules/td_module_related_posts.php and I see that titles are get from the function get_title from td_module.php so is impossible to archive separately.

Thank you.

  • This topic was modified 9 years by nairolf.
Post count: 22421

Hello,

Yes, this is true. Our theme elements have common functions. They do not have separate functions for each element. The get_header function works on all modules and blocks in our theme. If you change this, it will affect multiple parts of the site, not just the related articles section. It can be done but you will need coding skills to pull it off.
An easy way to do it is to duplicate the function in td_module.php and name it get_title_custom and then replace the h tag to the one that you want.
Make sure to call the get_title from the td_module_related_post.php to the get_title_custom function.

Thanks.

Post count: 285

I take my hat off!!!

Thank you very much Bogdan

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