Tagged: , , , ,

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #20166

    Hi again,

    I’m trying to optimize my theme using http://www.prelovac.com/vladimir/browser-addons/seo-doctor

    Reading the advice on the websites, there should be one H1 tag and several H2s.

    On the 1st screen / http://www.pawelsuder.pl/industrial/

    you can see two H2s, one as a logo, the other as the archive title so:

    - I do not want to argue with the Kriesi but the H1 logo is right? if it is not necessary, how can I remove the H1 class without damage the structure of the code? (screen 2)

    - I’m also trying to reduce the H1 font size from 36pix but only hight of the header is active, why? (screen 1)

    #106524
    #106525

    Hi suderDesign,

    SEO is an ever changing complicated subject. The reason I was always told to have the logo/title of the page in an h1 was because its the title of your site and thus very very important.

    You can remove the header tag from the logo in your theme files:

    framework/php/function-set-avia-frontend-functions.php

    look for:

    if(!function_exists('avia_logo'))
    {
    /**
    * return the logo of the theme. if a logo was uploaded and set at the backend options panel display it
    * otherwise display the logo file linked in the css file for the .bg-logo class
    * @return string the logo + url
    */
    function avia_logo()
    {
    if($logo = avia_get_option('logo'))
    {
    $logo = "<img src=".$logo." alt='' />";
    $logo = "<h1 class='logo'><a href='".home_url('/')."'>".$logo."</a></h1>";
    }
    else
    {
    $logo = get_bloginfo('name');
    $logo = "<h1 class='logo bg-logo'><a href='".home_url('/')."'>".$logo."</a></h1>";
    }

    return $logo;
    }
    }

    You can change the height of the h1 by adding the following to your custom.css file in the css folder of your theme files:

    h1 {
    font-size: 36px;
    font-weight: normal;
    text-transform: none;
    }

    Regards,

    Devin

    #106526

    Hi Devin,

    Thank you for your opinion about H1 with logo but what do you thing about two H1s per one website?

    #106527

    Not a big deal if they are inside other containers. We see the site visually while the spiders see it through the code. Even more so has html5 becomes used and you can define articles directly.

    Right now it could be bad and later good or the other way around but ultimately its what each owner wants for their site and believes to be “correct”.

    Regards,

    Devin

    #106528

    Hi Devin,

    One more question to you. Many people can say that the H1 tag for logo is good for SEO. But is it good to have the empty alt tag there?

    I am using the WordPress SEO plugin by Yoast.

    screen – http://suder.nazwa.pl/logo-h1.jpg

    #106529

    Last I read search engines completely ignore alt data to force developers from trying to add keywords there when it should be used for screen readers.

    So no, it has no effect on your SEO at all.

    #106530

    Ok, thanks!

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

The topic ‘H1 / H2 tags vs theme SEO’ is closed to new replies.