Removing text/tagline from Wordpress header when using a custom header image

8 replies
Hi,

I'm using a Wordpress theme that doesn't have an automatic option to use a custom image header. I successfully managed to add my custom header and it's displaying properly. However, it's still showing the text of the site title and tagline over the custom header image. Anyone know how to remove that?
#custom #header #image #removing #text or tagline #wordpress
  • Profile picture of the author Jeremy Lebre
    You must remove some lines of code in the header.php file of
    the theme. Post the code of this file if you don't find these lines.
    {{ DiscussionBoard.errors[6754110].message }}
    • Profile picture of the author MyOwnWebGuy
      Originally Posted by Jeremy Lebre View Post

      You must remove some lines of code in the header.php file of
      the theme. Post the code of this file if you don't find these lines.
      This is correct. You need to find the PHP code that is printing the site title and tagline.

      Beware of what Lisa G suggests in her post above. That method is a blackhat SEO technique and could get you punished by Google. Not only that, but it's bad practice and generally frowned upon.
      {{ DiscussionBoard.errors[6758832].message }}
  • Profile picture of the author lisag
    I recommend leaving the title and tag in the header so search engines can find it. You can remove it from human view this way:

    At the bottom of your site.css file add:

    #headerimg h1,.description { position:absolute; top:-5000px; left:-5000px; }

    That should do the trick.
    Signature

    -- Lisa G

    {{ DiscussionBoard.errors[6758701].message }}
  • Profile picture of the author lisag
    Can you point me to where Google says it's not acceptable or an authority that says it's frowned upon? I've been doing it for years with no negative results, but 'm willing to stop if I know it'sa problem.
    Signature

    -- Lisa G

    {{ DiscussionBoard.errors[6758871].message }}
  • Profile picture of the author MyOwnWebGuy
    I can't post links yet, but basically you can do a Google search for "hidden text SEO" or something similar and see how much has been written on this black hat topic.

    Google themselves basically say that you should be designing your site for the users, not the search engines. What you're doing is the exact opposite.
    {{ DiscussionBoard.errors[6759762].message }}
    • {{ DiscussionBoard.errors[6759825].message }}
      • Profile picture of the author harshmaur
        I have read it in the google webmaster tools itself that anything that a human cannot read on the webpage will not be seen by the google(it wont penalize for that though)

        Like adding display:none; or reducing the font-size to 0 or applying z-index or position css. Google will not see text that has those kind of css applied to hide something from the viewers.

        I left those techniques after I saw that.
        {{ DiscussionBoard.errors[6805836].message }}
  • Profile picture of the author santacruz
    Lisa is right, and the CSS position for header text is nothing to do with blackhat unless you stuff with many hidden keyword that purely for SEO. Anyway if you are not happy with it, so just use other method.
    {{ DiscussionBoard.errors[6808137].message }}

Trending Topics