Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter ratpatrol

    (@ratpatrol)

    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>
    Thread Starter ratpatrol

    (@ratpatrol)

    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

    Thread Starter ratpatrol

    (@ratpatrol)

    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

    Thread Starter ratpatrol

    (@ratpatrol)

    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

Viewing 4 replies - 1 through 4 (of 4 total)