why does h4 tag in td_block_template_1.php still use "block-title" class

Posted in: Newspaper
Post count: 30

why does h4 tag in td_block_template_1.php still use “block-title” class? I’ve seen all other td_block_template_<n>.php use “td-block-title” on h4 tag

Post count: 22421

Hello,

This will not affect the proper functionality of the theme as the block template applies to all blocks at once.
The first block template td_block_template_1.php was the old one created a long time ago and in the previous updates we added the other block templates which got new classes. We did not change the classes for the first block template though as it does not result in any change on the front-end but it will not break people’s customization. We prefer to add to our theme rather than change existing code (as much as possible) as this causes lots of people to loose their custom code that was created on the existing theme classes.

Thank you!

Post count: 30

So, If I try to use “td_block_template_2” css class by specifying to “Extra class” block option, it will not be applied because “td_block_template_2” use “td-block-title”. I think it’s weird though.

<!– copy and paste. Modify height and width if desired. –>

Post count: 22421

Hi,

I understand now what you want to achieve but it will not work like that unfortunately. Block templates are selected fro all blocks at once: https://www.screencast.com/t/V87TyKX5es8
You cannot change a specific block’s template just by adding a custom class to it in the block settings.

Thank you!

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