Forums / Templates, Stylesheets, Page Layout / Would like to remove empty photo box

Would like to remove empty photo box

Locked

Views: 1,803

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
9 Jan 2008, 5:45 AM
#1
mt_ed avatar

mt_ed

New Zenner

Join Date:
Dec 2007
Posts:
31
Plugin Contributions:
0

Would like to remove empty photo box

After modifying my header by swapping out the default image, and then deactivating the default banners, I am left with a small square with a white center that has a red "X". It appears the template is expecting a photo there, for which there is no actual photo (file). What it used to be was the logo.gif.

This phantom only exists on IE, but not Firefox! Can anyone suggest how to get this phantom to move along and stop haunting my site?

Thanks in advance!

9 Jan 2008, 7:27 AM
#2
gsis avatar

gsis

Zen Follower

Join Date:
Jun 2007
Posts:
140
Plugin Contributions:
0

Re: Would like to remove empty photo box

Find a transparent gif, make a copy of it, rename the copy to logo.gif and put it in the right directory.

We're now settled in at our final home - http://www.swiftbooks.co.uk - where you'll find an eclectic collection of used books. Still a lot of work to do, though!

9 Jan 2008, 7:39 AM
#3
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Would like to remove empty photo box

One could also edit the correct file. :wink:

includes/languages/english/your_template/header.php

// added defines for header alt and text
define('HEADER_ALT_TEXT', 'Powered by Zen Cart :: The Art of E-Commerce');
define('HEADER_SALES_TEXT', 'TagLine Here');
define('HEADER_LOGO_WIDTH', '192px');
define('HEADER_LOGO_HEIGHT', '64px');
define('HEADER_LOGO_IMAGE', 'logo.gif');

Edit these 3 lines to look like:

define('HEADER_LOGO_WIDTH', '');
define('HEADER_LOGO_HEIGHT', '');
define('HEADER_LOGO_IMAGE', '');

The learning is in the doing.

Potent Products

10 Jan 2008, 1:40 AM
#4
mt_ed avatar

mt_ed

New Zenner

Join Date:
Dec 2007
Posts:
31
Plugin Contributions:
0

Re: Would like to remove empty photo box

We were thinking alike WR, accept I had already '' out all fields under defines for header alt and text. That is what got me the aforementioned phantom. When I modified my attmept to your suggestion, I got a much larger box with text in it that would change color when I hovered over it. Sooooo, it would appear that I need to change something else that relies on "this" information when placing the image.........like a template or something???? I am just guessing here, or I wouldn't be asking for help.........I can't find anywhere else that the header.php file is being accessed? Any other suggestions?

10 Jan 2008, 7:59 AM
#5
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Would like to remove empty photo box

I would also delete any "logo.gif" image you may have and refresh the Browser. With IE you may have to close all open IE's.

Other than that, you can declare "display:none" for the "id or class" the logo.gif is used in, presuming there is nothing else or provide a URL for a look see. As you mentioned you did some changes, perhaps fresh eyes can see what you are missing?

The learning is in the doing.

Potent Products

11 Jan 2008, 6:29 PM
#6
mt_ed avatar

mt_ed

New Zenner

Join Date:
Dec 2007
Posts:
31
Plugin Contributions:
0

Re: Would like to remove empty photo box

Well, I have yet to try the transparent gif image, mostly because, although it appears simple, I wasn't sure it was the most appropriate method to make this correction. If anyone else out there is still reviewing this thread, let me tell you what I have tried thus far:

I used web developer, under tools to isolate "logo.gif" in all files.
I then went to all but two of these references and anywhere there were image dimensions or the logo.gif within ''(quotes), I nulled them out by leaving the statements and removing anything between the ' 's.

In some cases I tried to "comment" these lines out, but then I would get text printed in the box, i.e. SALES_TEXT_HERE, or something similar.

I made changes in: p_h/zc/nddbc.html
p_h/zc/incl/lang/engl/classic/header.php
p_h/zc/admin/incl/lang/eng.php
p_h/zc/admin/server_info.php
p_h/zc/incl/lan/engl/header.php

I did not make changes in: public_html/zencart/admin/includes/footer.php because it indicated it was a footer document, and I am working with the header.

What this phantom image reminds me of is when an image has been defined in the code, but the image that is to be posted there is missing, or not defined. This is why I had nulled out all 'logo.gif' and image size specifications.

I am truely stumped now!!! Has anyone else got any new ideas?

12 Jan 2008, 4:58 AM
#7
mt_ed avatar

mt_ed

New Zenner

Join Date:
Dec 2007
Posts:
31
Plugin Contributions:
0

Re: Would like to remove empty photo box

I finally discoverd the answer to my question. It was found in the tutorial https://www.zen-cart.com/tutorials/index.php?article=126. I will share one thing I discovered, that wasn't working for me, however.

The tutorial suggests adding the red entries below:

<!--[/b][/color] <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> -->

When I did this, it removed the logo alright, but it also removed my custom header image as well! Not to worry. The fix is to only add the // preceeding the echo, leaving off the html quote desingators, and your custom header image will remain, and the Zen logo will be gone!

I hope this saves somebody some time someday!