WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Removing text from header, but... (8 posts)

  1. RexFromArs
    Member
    Posted 5 years ago #

    I'm using Kubrick on WP 2.8.

    I'd like to remove the text from the header, *but* retain the ability for users to click on the header to return home.

    I've set up "toggle text display" under "Customer Header", but that leaves me with a header you cannot click on.

    I've tried leaving the "Blog name" and "tagline" descriptions empty under Settings > General, but this also leaves an "unclickable" header.

    I would try the old "make the header text the same color as the header" trick, but my header is a very stylized picture of Kate Winslet, so that's a no-go.

    Any ideas? Thanks in advance!

    Rex

    PS - my blog is at http://www.jimcofer.com if that helps.

  2. kennethwatt
    Member
    Posted 5 years ago #

    Edit header.php. Insert the image there as so:
    <a href="THE LINK YOU WANT"><img src"=IMAGE URL"></a>
    and take out the header image from the stylesheet. You will have to play about with the alignment a bit, but thats the standards-complient and user friendly and simplest way to do it. :-)
    K

  3. RexFromArs
    Member
    Posted 5 years ago #

    Thanks for the tip. I opened the header.php file and changed this:

    <div id="header" role="banner">
    	<div id="headerimg">
    		<h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
    		<div class="description"><?php bloginfo('description'); ?></div>
    	</div>

    with this:

    <div id="header" role="banner">
    	<div id="headerimg">
    		<h1><a href="http://www.jimcofer.com"><img src="http://www.jimcofer.com/personal/wp-content/themes/default/images/kubrickheader.jpg"</a></h1>
    		<div class="description"><?php bloginfo('description'); ?></div>
    	</div>
    </div>
    <hr />

    The result is this.

    Could you give me some pointers on how to move the new graphic up a little bit? I don't know PHP (that's why I use WordPress!).

    Also, why is it that the PHP code I changed would only accept the absolute hyperlink instead of a relative one? I tried images/file.jpg, but it didn't work until I put the full URL in there.

    THANK YOU!

  4. figaro
    Member
    Posted 5 years ago #

    Could you give me some pointers on how to move the new graphic up a little bit?

    The graphic is up about as far as it will go...the white at the top is part of the graphic. If you haven't already view them, the following videos on editing Kubrick may help.

    http://educhalk.org/blog/?p=137

  5. RexFromArs
    Member
    Posted 5 years ago #

    Thanks for the tips, figaro!

    However, when I edited my header.php file to this:

    <div id="header" role="banner">
    <div id="headerimg">
    <div id="headerimg" onclick="location.href='http://www.jimcofer.com';" style="cursor: pointer;" title="Home"></div></div>
    </div>

    It's still not clickable.

    Here's EXACTLY what I did:

    1) Downloaded a fresh copy of WordPress.
    2) Unzipped it and renamed wp-content > themes > default to "jim".
    3) Edited the STYLE.CSS file to change name of theme to "jim".
    4) Edited header.php as shown above.
    5) Downloaded existing kubrickheader.jpg file from site and overwrote the existing "fresh" copy.
    6) Uploaded the "jim" folder to wp-content > themes on my site.
    7) Via the admin panel, changed themes.
    8) When that didn't work, checked php code (above) via Themes Editor.

    Any suggestions?

  6. RexFromArs
    Member
    Posted 5 years ago #

    Perhaps I should add that I've tested it in FF, IE and Chrome, too. No dice.

  7. RexFromArs
    Member
    Posted 5 years ago #

    Nevermind... I guess the "Toggle Text Display" setting was still in place from my previous (default) theme. I toggled it back on and now it works!

    THANKS, figaro! I'm looking forward to checking out lots of the other tips on that site!

  8. figaro
    Member
    Posted 5 years ago #

    You're welcome...glad it helped.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.