Hey guys, header image link question


Author Message
AdamH

Posted: 12/28/2011
Quote message 

Trying to find a simple answer for this, did a search which didn't help.

So, I'd like my header to link my homepage whenever it's clicked. I'm guessing that I need to modify header.php instead of index.php, but I'm not sure what to change. I'm guessing that it's somewhere here:

<div class="art-header">     <div class="art-header-wrapper">     <div class="art-header-inner">         <div class="art-headerobject"></div>         <div class="art-logo">         <?php if(theme_get_option('theme_header_show_headline')): ?>         <h1 class="art-logo-name"><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1>         <?php endif; ?>         <?php if(theme_get_option('theme_header_show_slogan')): ?>             <h2 class="art-logo-text"><?php bloginfo('description'); ?></h2>         <?php endif; ?>         </div>


I'm not sure which part of this that I need to change. I'd rather know for myself which part to change and not just have it changed for me (sorry, i have no idea how to organize code lines with the code tags on this forum).

other than that, my site's template is ready to go and i've got a pretty good hold over how to use artiseer. thanks to everybody on the forum that's helped.


 
Gina

Posted: 12/28/2011
Quote message 

Hi Adam,

Instead of <div class="art-header">

Use this:

<div class="art-header" onclick="location.href='http://www.yoursite.com/';" style="cursor: pointer;">
 
AdamH

Posted: 12/28/2011
Quote message 

ty gina, this is like the 5th time you've made my site awesome
 
Gina

Posted: 12/29/2011
Quote message 

:-)
 
Wally

Posted: 1/3/2012
Quote message 

Thank you Gina!
 
Patty

Posted: 6/12/2012
Quote message 

Thank you Gina. Works like a charm!
 
Chophouse

Posted: 4/6/2014
Quote message 

How would this be implemented now? The only instance of art-header in my header.php file reads:

<?php if(theme_has_layout_part("header")) : ?> <header class="clearfix art-header<?php echo (theme_get_option('theme_header_clickable') ? ' clickable' : ''); ?>"><?php get_sidebar('header'); ?> 


Thanks
 
Bart

Posted: 6/26/2014
Quote message 

So simple can life be!
Thx Gina, even Artisteer did not know that.

Quote Gina:

Hi Adam,

Instead of <div class="art-header">

Use this:

<div class="art-header" onclick="location.href='http://www.yoursite.com/';" style="cursor: pointer;">