Forums / Templates, Stylesheets, Page Layout / Can't get rid of blank image/link after logo/header change

Can't get rid of blank image/link after logo/header change

Locked

Started by bakdoor on 22 Sep 2008, 1:24 PM · Views: 1,771

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
22 Sep 2008, 1:24 PM
#1
bakdoor avatar

bakdoor

New Zenner

Join Date:
Dec 2006
Posts:
43
Plugin Contributions:
0

Can't get rid of blank image/link after logo/header change

I changed my header/logo and all looks good in FF but in IE, I have a small blank box with a red x in it in the upper left hand corner. I can't seem to figure out how/where to remove.
Thanks

http://nicotinerush.com/

NicotineRush dot com Nasal Snuff & Accessories

22 Sep 2008, 2:49 PM
#2
bwhitmire avatar

bwhitmire

New Zenner

Join Date:
Feb 2006
Posts:
38
Plugin Contributions:
0

Re: Can't get rid of blank image/link after logo/header change

I am assuming you changed your logo through the stylesheet? If you did that you will still have the zen cart logo. If you only commented out the zen cart logo in the header.php file, you will see the little box with the red square. What I did was directed the header.php file to look for my logo instead of the stylesheet looking for it and that fixed the problem for me. I don't know if that is the "correct" way but it worked for me.

22 Sep 2008, 3:52 PM
#3
bakdoor avatar

bakdoor

New Zenner

Join Date:
Dec 2006
Posts:
43
Plugin Contributions:
0

Re: Can't get rid of blank image/link after logo/header change

bwhitmire:

I am assuming you changed your logo through the stylesheet? If you did that you will still have the zen cart logo. If you only commented out the zen cart logo in the header.php file, you will see the little box with the red square. What I did was directed the header.php file to look for my logo instead of the stylesheet looking for it and that fixed the problem for me. I don't know if that is the "correct" way but it worked for me.

Thanks. An example of how you did that would be appreciated.

NicotineRush dot com Nasal Snuff & Accessories

22 Sep 2008, 6:46 PM
#4
bwhitmire avatar

bwhitmire

New Zenner

Join Date:
Feb 2006
Posts:
38
Plugin Contributions:
0

Re: Can't get rid of blank image/link after logo/header change

Find your header file. It is in the includes/languages/english folder. Make sure you make a copy into your custom folder (your overrides) and make changes to the copy. Look for the following:

// added defines for header alt and text

define('HEADER_ALT_TEXT', ''); I just removed the text here in between the quotes

define('HEADER_SALES_TEXT', ''); I just removed the text here in between the quotes

define('HEADER_LOGO_WIDTH', '820px');

define('HEADER_LOGO_HEIGHT', '150px');

define('HEADER_LOGO_IMAGE', '../../images/header.jpg'); The path to my logo

22 Sep 2008, 8:44 PM
#5
bakdoor avatar

bakdoor

New Zenner

Join Date:
Dec 2006
Posts:
43
Plugin Contributions:
0

Re: Can't get rid of blank image/link after logo/header change

bwhitmire:

Find your header file. It is in the includes/languages/english folder. Make sure you make a copy into your custom folder (your overrides) and make changes to the copy. Look for the following:

// added defines for header alt and text

define('HEADER_ALT_TEXT', ''); I just removed the text here in between the quotes

define('HEADER_SALES_TEXT', ''); I just removed the text here in between the quotes

define('HEADER_LOGO_WIDTH', '820px');

define('HEADER_LOGO_HEIGHT', '150px');

define('HEADER_LOGO_IMAGE', '../../images/header.jpg'); The path to my logo

Thanks, but that didn't do it. I think it has something to do with this code in tpl_header:

<!--bof-branding display--> <div id="logoWrapper"> <div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>

but I'm not sure.

NicotineRush dot com Nasal Snuff & Accessories

22 Sep 2008, 9:09 PM
#6
bakdoor avatar

bakdoor

New Zenner

Join Date:
Dec 2006
Posts:
43
Plugin Contributions:
0

Re: Can't get rid of blank image/link after logo/header change

Fixed! Added the following to the style sheet:

#logo {
display: none;
}

NicotineRush dot com Nasal Snuff & Accessories

27 Sep 2008, 4:41 AM
#7
tntwmom avatar

tntwmom

New Zenner

Join Date:
Aug 2008
Location:
Tennessee
Posts:
42
Plugin Contributions:
0

Re: Can't get rid of blank image/link after logo/header change

Ahhhhh Thank you so much! I had the red X in the corner of a header and this took it off!

Fixed! Added the following to the style sheet:

#logo {
display: none;
}

Shannon