Hello!
I’d like to remove H3 tags from mega-menu because it breaks the SEO-structure of the page content. Could you please advise how to do it?
Thank you!
Can I edit it in php? Could you please tell me where the source file is?
Hello !
If you modify it there it will affect all the modules, not just the mega-menu modules. Also there could be various design issues as you mention caused by changing the heading, the proper CSS will not apply anymore.
Maybe you can try if you want to decrease the title font size only for your mega menu, please try to use a bit of CSS code to do that. Try the code below and place it in Theme panel->Custom CSS area.
The code is ->
.td_block_mega_menu .td-module-title a {
font-size:15px;
}
Hope this helps!
Thank you !
Hello Vlad,
I’m sorry, maybe I mislead you with my question, because I think that the problem cannot be solved with CSS.
The only reason to remove H3 tags from the menu is seo-structure of the page. Normally H1 is the first header-tag on the page, then H2-tags are nested into the H1, H3-tags are nested into H2 and so on. But with mega-menu, the page starts from a bunch of H3 headers, and then below there are H1 and H2: https://prnt.sc/ouzvr0.
So I actually need to replace <h3> with <div> or whatever, just in the mega-menu.
Thank you!
I’ve solved the problem using script.
It would be good if you could include this task into the next updates. Wrong page structure can influence seo.
Thank you for the willing to help!