Tagged: ,

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #20517

    Hey there – after doing a quick on page seo audit of a site using Flagship I noticed that the logo image file is wrapped in h1 tags. Which essentially means I have 2 h1 tags on every page – a slight negative for on page seo.

    Can you rectify this for future releases if possible?

    How can I change in the meantime? I’ve dug in the code with firebug but still can’t pinpoint exactly where I need to change/delete.

    Just a small thing but would be good to get fixed for seo.

    #107981

    Open up wp-contentthemesflagshipframeworkphpfunction-set-avia-frontend.php and search for following code:

    $logo = "<h1 class='logo'><a href='".home_url('/')."'>".$logo."$sub</a></h1>";

    and:

    $logo = "<h1 class='logo bg-logo'><a href='".home_url('/')."'>".$logo."$sub</a></h1>";

    Replace the h1 tag with any headline type/tag of your choice. I already updated the framework and the next theme update will introduce a filter which allows you to change the headline tag. You don’t need to modify function-set-avia-frontend.php in this case but add following code to functions.php:

    add_filter('avia_logo_headline_filter', 'avia_headline');
    function avia_headline() {
    return "h3";
    }

    and replace h3 with any headline tag of your choice (h4,h5,etc.)

    #107982

    Cheers – Thanks Dude – you’re a…cool dude!

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Small thing – Logo wrapped in H1 tag’ is closed to new replies.