Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1086682

    Good Afternoon!

    I am working on Accessibility Compliance and I would like my logo to be nested in an H1 tag on all pages. I found a previous thread and tried the code but it did not work. I am using a child theme for this website. Here is the code that I found & tried:

    add_filter(‘avf_logo_headline’,’avia_new_logo_span’);
    function avia_new_logo_span(){
    $output = “h1”;
    return $output;
    }

    This did not work. Any other coding suggestions?

    #1086919

    Hey amanda-mdllc,

    Thank you for using Enfold.

    That is the correct filter, but you have to edit it a bit. Please replace it with the following code.

    add_filter( 'avf_logo_headline',  'avf_logo_headline_mod_h1', 10, 1);
    function avf_logo_headline_mod_h1($headline) {
        $headline = 'h1';
        return $headline;
    }

    Best regards,
    Ismael

    #1087093

    Good Morning Ismael,

    I tried the code you sent and I got this error: https://drive.google.com/file/d/1rVPYXkGNe1IGen9lY2EnqAWEGHj1SYej/view?usp=sharing

    I refreshed it and tired it again and the code had vanished from the editor and it says “Something went wrong. Your change may not have been saved. Please try again. There is also a chance that you may need to manually fix and upload the file over http://FTP.”

    Any idea why this isn’t working properly?

    #1087505

    Hi,

    As you can see in your screenshot, the single quotes have turned into a code. Try this instead and make sure it’s intact when you paste it in to the editor: https://pastebin.com/vNwY4us4

    Best regards,
    Rikard

    #1087537

    That worked perfectly! I had to do it VIA FTP but it works!!!!

    Thanks bunches & have an excellent weekend.
    ~Amanda

    #1087639

    Hi,

    I’m glad this was resolved. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Logo in H1 tag on all pages using Child Theme’ is closed to new replies.