How to change heading Map ?

Posted in: Newspaper
Post count: 24

Dear,

Currently on my home page I have :
– h1 for the name of my website
– h3 for article title from td_block_grid_X
– h4 the title of td_block_grid_X

First they are no h2, and the title of the group of articles has a higher heading number it is not logic, no?

I exected, some thing like:
– h1 for the name of my website
– h2 the title of td_block_grid_X
– h3 for article title from td_block_grid_X

Below the headings map (firefox’s extention):
Heading map

thanks for your help

Post count: 20688

Hi,

Yes that seems to be the case. Block titles are using h4 and article titles are using h3. There is no option in the theme at the moment to allow you to change the headings for these elements. It would require modification to the theme files to modify them.

Thanks

Post count: 24

Ok so if I copy td_block_template_4 and edit it into my child theme.
Is it enough or Ishould to go to tagdiv composer and save the page ?

thanks

Post count: 24

So it is solved, I have copied includes/block_templates/td_block_template_1.php
and change the hardcoded h4 to h2:

106c106
< $buffy .= ‘<h4 class=”block-title”>’;

> $buffy .= ‘<h2 class=”block-title”>’;
112c112
< $buffy .= ‘</h4>’;

> $buffy .= ‘</h2>’;
159c159
< }
\ No newline at end of file

> }

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