• Resolved skits

    (@skits)


    the template can be foun here http://www.doshdosh.com/BlueSense.zip

    I want to replace the boring text in the header with an image that links to the main site. Now I had no issues getting the image up there. The issue is that the text of the site name is still there overlaying the image. I cant for the life of me figure out how to remove the text and use the image for the link

Viewing 3 replies - 1 through 3 (of 3 total)
  • Look in header.php for,

    <h1><a href="<?php echo get_settings('home'); ?>"><?php bloginfo('name'); ?></a></h1>

    The text you refer to is being generated by this part of the code above <?php bloginfo('name'); ?>

    There are a couple of ways you can go with this. Deleting that entire reference will get rid of your blog title appearing in the header BUT it will also negate the link back to your home page – something you probably don’t want as you stated you want the link.

    Since the image is a background image called by the style sheet you’d have to remove it from the style sheet and actually embed it in the HTML of your document. This is likely something you wouldn’t want to try if your CSS skills are limited as it would require some mods.

    Any easier method would be delete the code I referenced above. Then, just above that look for <div id="header"> and insert onclick="location.href='http://siteaddress/';" style="cursor: pointer;" into the tag so that it now looks like,

    <div id="header" onclick="location.href='http://YourBlog.com/';" style="cursor: pointer;">

    As an edit to my previous answer I should be more specific when I say “YourBlog.com”. You don’t actually have to hard code your site URL in there – just use the php function <?php echo get_settings('home'); ?> as such,

    <div id="header" onclick="location.href='<?php echo get_settings('home'); ?>/';" style="cursor: pointer;">

    And if you want to get really fancy you could toss in something like title="link to home page" or whatever.

    Good grief. I must be suffering from sleep deprivation or something. When I gave you these instructions I was actually looking at another theme – the theme that someone had an issue with this thread.

    http://wordpress.org/support/topic/161043?replies=4

    As such, my reply pertains more to that situation than it does to this one. (I was looking at both themes at the same time. My bad.)

    That said, you should still be able to get what you need from my answer and discard the rest. If not post back for help. 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘how to get rid of header text link in favor of linked image?’ is closed to new replies.