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)
-   -   Unable to modify Logo Icon Link in bfa_header_configuration (http://forum.bytesforall.com/showthread.php?t=13316)

gnosis Mar 15, 2011 11:35 AM

Unable to modify Logo Icon Link in bfa_header_configuration
 
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.

juggledad Mar 15, 2011 01:52 PM

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?

gnosis Mar 16, 2011 06:59 AM

rather than linking back to the library home page, I want to link to another URL

juggledad Mar 16, 2011 07:19 AM

What version of Atahualpa?
and what is teh wordpress url (dashboard->settings->general)?

gnosis Mar 16, 2011 11:20 AM

3.64
http://library.gc.cuny.edu/mrl365_2

gnosis Mar 16, 2011 11:45 AM

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?

juggledad Mar 16, 2011 12:31 PM

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="';



All times are GMT -6. The time now is 05:52 AM.

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