Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

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

Unable to modify Logo Icon Link in bfa_header_configuration


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Mar 15, 2011, 11:35 AM
gnosis
 
128 posts · May 2010
Unable to modify Logo Icon Link in bfa_header_configuration:

If I change this:

if ( $bfa_ata['logo'] != "" )
{
echo '<td ' . $header_rowspan . 'valign="middle" class="logoarea-logo"><a href=""><img class="logo" src="';

to:

if ( $bfa_ata['logo'] != "" )
{
echo '<td ' . $header_rowspan . 'valign="middle" class="logoarea-logo"><a href="mysite.com"><img class="logo" src="';


The link on the logo merely appends to the current page.
So if a user is on:

http://mysite.com/page9
and clicks on logo
user will encounter a 404 page not found because URL is appended to:

http://mysite.com/page9/mysite.com

I would like to direct users back to home page.

Please help.

Thanks.
  #2  
Old Mar 15, 2011, 01:28 PM
STB
 
762 posts · Apr 2010
try using an absolute URI

mysite.com is a relative one, and thus gets appended indeed
  #3  
Old Mar 15, 2011, 01:52 PM
juggledad's Avatar
juggledad
 
20,001 posts · Mar 2009
OSX 10.6.8/10.7.3 WP 2.8.x/2.9.x/3.x Atahualpa 3.5.x/3.7.x Safari 5.x Firefox 11 XP
I'm not wure what you want to do. The logo is set up to link back to the home/landing page by default. Are you trying to get it to link somewhere else?
  #4  
Old Mar 16, 2011, 06:59 AM
gnosis
 
128 posts · May 2010
rather than linking back to the library home page, I want to link to another URL
  #5  
Old Mar 16, 2011, 07:19 AM
juggledad's Avatar
juggledad
 
20,001 posts · Mar 2009
OSX 10.6.8/10.7.3 WP 2.8.x/2.9.x/3.x Atahualpa 3.5.x/3.7.x Safari 5.x Firefox 11 XP
What version of Atahualpa?
and what is teh wordpress url (dashboard->settings->general)?
  #6  
Old Mar 16, 2011, 11:20 AM
gnosis
 
128 posts · May 2010
3.64
http://library.gc.cuny.edu/mrl365_2
  #7  
Old Mar 16, 2011, 11:28 AM
STB
 
762 posts · Apr 2010
Quote:
Originally Posted by STB
try using an absolute URI

<...>
that doesnt work?
  #8  
Old Mar 16, 2011, 11:45 AM
gnosis
 
128 posts · May 2010
what do you mean by an absolute URL?

Why wouldn't this work:

if ( $bfa_ata['logo'] != "" )
{
echo '<td ' . $header_rowspan . 'valign="middle" class="logoarea-logo"><a href="mysite.com"><img class="logo" src="';

isn't mysite.com absolute?
  #9  
Old Mar 16, 2011, 12:31 PM
juggledad's Avatar
juggledad
 
20,001 posts · Mar 2009
OSX 10.6.8/10.7.3 WP 2.8.x/2.9.x/3.x Atahualpa 3.5.x/3.7.x Safari 5.x Firefox 11 XP
you are missing the 'http://' you need to code it as
HTML Code:
			// Logo Icon for Wordpress and WPMU
			if ( $bfa_ata['logo'] != "" ) 
			{ 
				echo '<td ' . $header_rowspan . 'valign="middle" class="logoarea-logo"><a href="http://mysite.com"><img class="logo" src="';

Last edited by juggledad; Mar 16, 2011 at 04:19 PM.
  #10  
Old Mar 16, 2011, 01:40 PM
STB
 
762 posts · Apr 2010
Quote:
Originally Posted by gnosis
what do you mean by an absolute URL?

Why wouldn't this work:

if ( $bfa_ata['logo'] != "" )
{
echo '<td ' . $header_rowspan . 'valign="middle" class="logoarea-logo"><a href="mysite.com"><img class="logo" src="';

isn't mysite.com absolute?
Quote:
Originally Posted by gnosis
what do you mean by an absolute URL?
an absolute URI means the complete link: protocol + domainname + full path

f.e. http://www.mysite.com/mypath/

Quote:

Why wouldn't this work:

if ( $bfa_ata['logo'] != "" )
{
echo '<td ' . $header_rowspan . 'valign="middle" class="logoarea-logo"><a href="mysite.com"><img class="logo" src="';
because its not an absolute URI

thus its considered to be a relative URI by wordpress and thus gets appended to your baseurl

Quote:
isn't mysite.com absolute?
Err ... Guess 1 time.

Just use the code you had in post #1 .. but use the absolute URI to the page you want your logo to link to.

Bookmarks

Tags
header configuration, logo

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to delete or modify a menu PAFISH Page & Category Menu Bars 8 Jan 29, 2011 04:26 AM
[SOLVED] rss icon styling in logo bar Zed Header configuration & styling 1 Oct 18, 2009 05:04 AM
[SOLVED] How to add icon and link to logo bar crogers32 Header configuration & styling 7 Sep 18, 2009 06:42 AM
How to change the logo icon johullster Forum How-To 5 Sep 13, 2009 10:12 AM
Logo Table- Feed/Comment Icon Help colemanorgoldman Atahualpa 3 Wordpress theme 1 Jan 27, 2009 10:08 PM


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


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