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

by 8 replies
9
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?
#programming #custom #header #image #removing #text or tagline #wordpress
  • 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.
    • [1] reply
    • 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.
  • 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.
  • 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.
  • 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.
    • [1] reply
  • 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.

Next Topics on Trending Feed