WordPress.org

Ready to get started?Download WordPress

Forums

adding header image instead of text title (7 posts)

  1. ratpatrol
    Member
    Posted 6 years ago #

    I am using the jd-nebula 3c-10 theme and it is transparent with two images for the body and content backgrounds so it does not have a header image but rather just a text title. Can someone please tell me how I would replace that text title as seen here: http://guitar-antics.com/trailstealth/blog/ with the text tile graphic image (transparent) as seen here: http://www.trailstealth.com/ and also how to make that header image link to the trailstealth.com homepage instead of the blog home as it does now. There are no header image files for this template so I am finding it hard to set this up, any help is greatly appreciated.

    Thanks in advance.

  2. Maxaud
    Member
    Posted 6 years ago #

    maybe try the search option next time
    this was posted only a short time ago:
    http://wordpress.org/support/topic/157079?replies=3

  3. ratpatrol
    Member
    Posted 6 years ago #

    Hey maxaud, I did search for a long time, not sure why I didnt find that, many thanks, that cures the text to image issue but now how to make it link to something other than the blog home ?

    RAT

  4. Maxaud
    Member
    Posted 6 years ago #

    you should find something like this in your header where you added the image code:
    <a href="<?php echo get_option('home'); ?>/"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/picture.jpg" alt="<?php bloginfo('description'); ?>" /></a>

    replace the following:
    <?php echo get_option('home'); ?>/

    with something like:
    http://www.yourdomain.com

    Let me know how that goes.

  5. ratpatrol
    Member
    Posted 6 years ago #

    Hey maxaud, I just kept playing with it until I just now got it to work and came back to here to post my results and walla, you have the answer already here for me !!

    You all are the best and I want to thank you so much for your amazing help. The various themes have slightly different codes in these files but I am learning. For anyone out there that needs this fix here is what I changed:

    original code for my theme(jd-nebula 3c-10):

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

    Changed to:

    <div id="header" onclick="location.href='<?php echo get_settings('home'); ?>';" style="cursor: pointer;">
    <h1>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/logo.png" alt="trailstealth.com" /></h1>
    </div>

    Now working like a charm !!!! MANY THANKS maxaud !!!!!!

    Now to tweak the css to get the image a little higher.
    RAT

  6. ratpatrol
    Member
    Posted 6 years ago #

    Sorry that didn't come out right, let me try again:

    original code:

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

    changed to:

    <div id="header" onclick="location.href='<?php echo get_settings('home'); ?>';" style="cursor: pointer;">
    		<h1><a href="http://trailstealth.com"<?php echo get_settings('home'); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/logo.png" alt="trailstealth.com" /></a></h1>
    	</div>

    RAT

  7. ratpatrol
    Member
    Posted 6 years ago #

    On further investigation it seems that code still left the entire header (not just the logo.png show up as a link that went to home or nowhere, to remove the cursor/link from the entire header where only the logo.png image is a link I did the following (as I could not figure out how to make the entire header area link to the url,, lol) :

    <div id="header" onclick="location.href="http://trailstealth.com">
    		<h1><a href="http://trailstealth.com"<img src="<?php bloginfo('stylesheet_directory'); ?>/images/logo.png" alt="trailstealth.com" /></a></h1>
    	</div>

Topic Closed

This topic has been closed to new replies.

About this Topic