[SOLVED] change header image to link to external page when clicked
My header image is actually an ad that says "Click Here to Learn More". When clicked on now, it goes to my WP blog. Can I change the code so that the link is to my affiliate home page? And if so, how would I make such a change?
Bill |
I am also having this problem and would like to know how to have the header image when click go to my affiliate page. Any help would be great!!
|
edit bfa_header_config.php line 281 (version 3.2.4 -> 3.4.6) change
HTML Code:
<a class="divclick" title="' . $bfa_ata['bloginfo_name'] . '" href ="' . $bfa_ata['get_option_home'] . '/"> </a></div>' : '' ); HTML Code:
<a class="divclick" title="' . $bfa_ata['bloginfo_name'] . '" href ="http://yourdomain.com"' . '/"> </a></div>' : '' ); in version 3.7.3 change line 307 from HTML Code:
bloginfo('name'); echo '" href ="'; bloginfo('url'); echo '/"> </a></div>'; HTML Code:
bloginfo('name'); echo '" href ="http://yourdomain.com" /"> </a></div>'; |
How would I do this with version 3.4.1?
I tried this same method, but it didn't work and I thought it might be due to the version I'm using. Thanks |
in 3.4.1 you would do the same thing, and the line number is the same. You must have ATO->Header Image->Make header image clickable? set to 'YES' in order for this to work.
|
Tried the above and could not seem to get it to work.
Despite having the href pointing back to http://www.common-defense.org the logo image still links back to blogs.common-defense.org when clicked...(the mouseover also displays the blogs.common-defense.org address.) Any additional tips, tricks or ideas would be mucho appreciated! |
This thread deals with making the header image, not the Blog Title (i.e. logo area) link to a different location. The Blog title will still take you to the blog home page
DerekN: You must have ATO->Header Image->Make header image clickable? set to 'YES' for the HEADER IMAGE to have a different link than the blog title with this patch in place. |
ah, my bad...I was thinking the logo and header were the same thing. I do not want the header area to be clickable, however, I am looking for the logo image to link back to the affiliate site, not to the blog homepage.
|
you'll have to edit bfa_header_config.php to do that
|
YAY! Thanks so much! Your PHP code edit tip not only worked, but I was also add code to open in separate window. You rock, Juggledad!
|
All times are GMT -6. The time now is 07:47 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.