Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Header configuration & styling (http://forum.bytesforall.com/forumdisplay.php?f=15)
-   -   [SOLVED] change header image to link to external page when clicked (http://forum.bytesforall.com/showthread.php?t=1926)

bilwebore Jun 5, 2009 07:58 AM

[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

DATAPOPP Jul 24, 2009 09:53 AM

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!!

juggledad Jul 24, 2009 04:10 PM

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'] . '/">&nbsp;</a></div>' : '' );
to
HTML Code:

                <a class="divclick" title="' . $bfa_ata['bloginfo_name'] . '" href ="http://yourdomain.com"' . '/">&nbsp;</a></div>' : '' );
in version 3.4.9-3.5.1 change line 301
in version 3.7.3 change line 307
from
HTML Code:

                bloginfo('name'); echo '" href ="'; bloginfo('url'); echo '/">&nbsp;</a></div>';
to
HTML Code:

                bloginfo('name'); echo '" href ="http://yourdomain.com" /">&nbsp;</a></div>';

loislanemiami Jul 25, 2009 09:40 PM

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

juggledad Jul 26, 2009 04:36 AM

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.

DerekN Jul 26, 2009 10:49 PM

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!

juggledad Jul 27, 2009 04:31 AM

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.

DerekN Jul 27, 2009 08:46 AM

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.

juggledad Jul 27, 2009 05:58 PM

you'll have to edit bfa_header_config.php to do that

kippiper Sep 23, 2009 04:06 PM

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 05:25 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.