Wordpress H1 Question

6 replies
  • WEB DESIGN
  • |
Currently a Wordpress theme of mine has the header being H1 and I
don't want it to be. To change this, would this work? This shows up on all my posts it appears, so in part I believe it detracts from my SEO as I want it to focus on the title and so on, not to take in to consideration a picture?

In styles.css, changing the logo part from...

#header h1.logo{
float:left;
padding:25px;

to...

#header span.logo{
float:left;
padding:25px;

and header.php from...

<h1 class="<?php if(get_option('pr_logo')){ echo "logo"; }else{echo "logo_text";} ?>">

<a href="<?php echo home_url(); ?>"><?php if(!get_option('pr_logo')){ bloginfo('title');} if(get_option('pr_logo')){ ?><img src="<?php echo get_option('pr_logo'); ?>" alt="<?php bloginfo('name'); ?>" /><?php }?></a></h1>

to...

<span class="<?php if(get_option('pr_logo')){ echo "logo"; }else{echo "logo_text";} ?>">

<a href="<?php echo home_url(); ?>"><?php if(!get_option('pr_logo')){ bloginfo('title');} if(get_option('pr_logo')){ ?><img src="<?php echo get_option('pr_logo'); ?>" alt="<?php bloginfo('name'); ?>" /><?php }?></a></span>

-------

Is that how I would "un-H1 it"? Or is there a better way?

To see the theme live you can click one of several links in my sig: Dedicated Server, Email Marketing, or VPS.

Would it be best to do this -- to make the header not H1? Does it make any sense for it to be H1?

Thanks so much for all the help.
#questions #website #wordpressy
  • Profile picture of the author RobKonrad
    Hey there,

    pro themes usually have the logo psd included so anybody with photoshop will be able to change it for you. Get it done on Fiverr if you don't have PS.

    Cheers
    Rob
    Signature
    ================================================== ===
    This blog is awesome: http://www.robkonrad.com/blog. Read it.
    ================================================== ===
    {{ DiscussionBoard.errors[5216930].message }}
  • Profile picture of the author Ross Cohen
    Thank you! Any insight to the 2nd question?
    {{ DiscussionBoard.errors[5217723].message }}
    • Profile picture of the author Trisha
      I'll change the text for you. I just downloaded the psd files, what do you want it to say? are you using the red version?

      If the h1 tag is already wrapped in the .logo div, you can probably just remove the h1 entirely... do you have firebug for firefox? you can test it out before you change any of the code... do you have that theme installed on a live server? I can check that out for you too...

      send me a PM or email digitalrenewal@gmail.com and tell me where you want your logo file sent to
      {{ DiscussionBoard.errors[5217881].message }}
      • Profile picture of the author Ross Cohen
        Trisha, you're so helpful!

        I haven't decided just yet about the text, but I will be PM'ing you!!

        As for the H1 "thing"... see the links in my sig (Dedicated Server, VPS, Email Marketing)... all of those have the H1 currently set up by default as the logo by the theme. I'm not sure about that whole Firefox thing. I just want to make the back-end not consider the logo H1 as I don't think the image really helps out my SEO.
        {{ DiscussionBoard.errors[5218199].message }}
        • Profile picture of the author Trisha
          Originally Posted by resellcells View Post

          Trisha, you're so helpful!

          I haven't decided just yet about the text, but I will be PM'ing you!!

          As for the H1 "thing"... see the links in my sig (Dedicated Server, VPS, Email Marketing)... all of those have the H1 currently set up by default as the logo by the theme. I'm not sure about that whole Firefox thing. I just want to make the back-end not consider the logo H1 as I don't think the image really helps out my SEO.

          yeah, i think people who develop themes know little about on page seo. I used to edit all of my theme files to remove that H1 from the header, until I just started to build them myself.

          yours is a real easy fix, and you had it right. Id probably use a div instead of a span.

          change:
          <h1 class="..."> </h1>
          to
          <div class="..."></div>

          it will work fine if you dont change the css, but if you want to, just remove h1 like so
          #header .logo


          PM the edit when you figure out the text. If I dont answer, email me directly. I double checked my notification settings, but I still dont get notified sometimes.


          beautiful sites by the way... are they performing well?
          {{ DiscussionBoard.errors[5218393].message }}
  • Profile picture of the author yukon
    Banned
    Change this .gif image to whatever you want.

    http://www.elegantthemes.com/v2/images/logo.gif

    Helps to have the original layered psd file.
    {{ DiscussionBoard.errors[5218245].message }}

Trending Topics