Support » Plugin: Max Mega Menu » How to remove h4 tag from titles?

  • Resolved natzz699


    So I noticed that all the titles on my max mega menu got h4 tags and I want to remove them due to SEO measures, I just can’t figure out where. For instance, if you open the dropdown menu on “Dienstleistungen”, all the small titles above the pictures got an h4 tag. Would you mind taking a look?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author megamenu


    Hi Natzz,

    Please try adding this to your themes functions.php file:

    function megamenu_use_h3_before( $title , $widget ) { 	
        return '<h3>'; 
    add_filter( "megamenu_before_widget_title", "megamenu_use_h3_before", 10, 2);  
    function megamenu_use_h3_after( $title , $widget ) {
        return '</h3>'; 
    add_filter( "megamenu_after_widget_title", "megamenu_use_h3_after", 10, 2); 

    The menu styling is targeted at the h4 tag, so changing it to something else will mean you’ll need to add some custom CSS to update the styling.


    Thread Starter natzz699


    Hi Tom,

    I implemented the code and now the h4 tags are gone, exactly what I was looking for.

    Thank you very much for your help! I appreciate it.

    Kind regards,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to remove h4 tag from titles?’ is closed to new replies.