• Is there a way to remove the following H1 tags? I don’t even have aga gate loading on this page. I’m trying to get rid of duplicate H1 tags on my home page. Thanks

    <h1 class=”age-gate-heading age-gate-logo”></h1>

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

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

    (@philsbury)

    Hi @sgucci1,

    You don’t have multiple H1s, have a look at this analysis on the “structure” tab. If you’re just viewing source there’ll be one in a js template so it’s not part of the document.

    However, if Age Gate were to trigger it is possible to have multiple, but as age gate doesn’t trigger for bots and crawlers it shouldn’t be an issue.

    So all that said, if you want to change the element you can do it with a filter in your functions.php – this will switch it to a div:

    
    add_filter('age_gate_logo', function ($content) {
        return str_replace('h1', 'div', $content);
    });
    

    Thanks
    Phil

    Thread Starter sgucci1

    (@sgucci1)

    Thank you for the quick response and solution!
    Steve

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘h1 Tags’ is closed to new replies.