• Resolved meryl

    (@meryl)


    I’m getting an accessibility error for the plug-in pop-up because it’s H4. Is there any way to remove H4 or change it to H2?

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author webtoffee

    (@webtoffee)

    Hi @meryl,

    You may please use the code snippet below. Copy it to active theme’s functions.php

    function wt_cli_add_html_wrapper($html, $begin, $end) {
    // wrap our original HTML with the new tags
    $begin = "<h2>";
    $end = "</h2>";
    $html = $begin . $html . $end;
    return $html;
    }
    add_filter('wt_cli_change_privacy_overview_title_tag', 'wt_cli_add_html_wrapper', 10, 3);
    • This reply was modified 9 months, 2 weeks ago by webtoffee.
    Thread Starter meryl

    (@meryl)

    Thank you. Won’t it disappear the next time my theme updates?

    Plugin Author webtoffee

    (@webtoffee)

    Hi @meryl,

    You can use a Child theme or use a plugin like this.

    Thread Starter meryl

    (@meryl)

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘H4 Heading’ is closed to new replies.