Support » Plugin: Age Gate » How to change H1 (logo) to H2?

  • Hello,

    I have a question – how to change type of heading tags (with logo inside)? I would like to set it to H2. Thank you for your help.

Viewing 1 replies (of 1 total)
  • Plugin Author Phil


    Hi @okitala,

    You can do this with a filter. A simple one would be this in your functions.php:

    add_filter('age_gate_logo', function ($logo, $id) {
        return str_replace('h1', 'h2', $logo);
    }, 10, 2);

    You can of course change the H2 there to what ever you want.


Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.