Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Header configuration & styling »

[SOLVED] change header image to link to external page when clicked


  #1  
Old Jun 5, 2009, 07:58 AM
bilwebore
 
3 posts · May 2009
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
  #2  
Old Jul 24, 2009, 09:53 AM
DATAPOPP
 
2 posts · Jul 2009
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!!
  #3  
Old Jul 24, 2009, 04:10 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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>';
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Jan 8, 2012 at 05:24 AM.
  #4  
Old Jul 25, 2009, 09:40 PM
loislanemiami's Avatar
loislanemiami
 
14 posts · Apr 2009
Miami, Florida
Send a message via AIM to loislanemiami
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
  #5  
Old Jul 26, 2009, 04:36 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #6  
Old Jul 26, 2009, 10:49 PM
DerekN
 
2 posts · Jul 2009
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!
  #7  
Old Jul 27, 2009, 04:31 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #8  
Old Jul 27, 2009, 08:46 AM
DerekN
 
2 posts · Jul 2009
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.
  #9  
Old Jul 27, 2009, 05:58 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
you'll have to edit bfa_header_config.php to do that
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #10  
Old Sep 23, 2009, 04:06 PM
kippiper
 
135 posts · Jun 2009
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!

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I change the header image link? catherinehbbh Forum How-To 4 Jan 20, 2012 06:49 PM
Style differently the active (just clicked) link in Categories and other widgets ymf Sidebars & Widgets 2 Mar 3, 2010 02:58 PM
Is it possible to include an external link along with page links? machepap Sidebars & Widgets 1 Feb 24, 2010 02:50 PM
[SOLVED] Link logo to external page jmdr Header configuration & styling 3 Nov 13, 2009 04:03 PM
Image header - external link c32v Header configuration & styling 2 Mar 12, 2009 12:35 PM


All times are GMT -6. The time now is 04:50 AM.


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