Forums / Templates, Stylesheets, Page Layout / Don't want a header logo...

Don't want a header logo...

Locked

Views: 1,000

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
28 Apr 2008, 8:11 AM
#1
Join Date:
Apr 2008
Posts:
7
Plugin Contributions:
0

Don't want a header logo...

My header image includes a logo, etc. Since I don't want another logo up there, do I just remove this from the header? Or is there somethign else I should be doing?

includes/languages/ENGLISH/header.php

define('HEADER_LOGO_WIDTH', '192px');
define('HEADER_LOGO_HEIGHT', '64px');
define('HEADER_LOGO_IMAGE', 'logo.gif');

28 Apr 2008, 8:33 AM
#3
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Don't want a header logo...

includes/languages/ENGLISH/header.php

define('HEADER_LOGO_WIDTH', '192px');
define('HEADER_LOGO_HEIGHT', '64px');
define('HEADER_LOGO_IMAGE', 'logo.gif');

Firstly, you should be working in your CUSTOM TEMPLATE system to ensure that the OVER_RIDES protocols are effective. If the header.php file does not exist in the path below, then COPY header.php into the appropriate directory...

includes/languages/YOUR_TEMPLATE/english/header.php

define('HEADER_LOGO_WIDTH', '192px');
define('HEADER_LOGO_HEIGHT', '64px');
define('HEADER_LOGO_IMAGE', 'logo.gif');

Now, you can delete the 'logo.gif' reference, so you have:-

define('HEADER_LOGO_IMAGE', '');

Make sure the two SINGLE QUOTES remain.

Next, you are going to have to edit:-

includes/templates/YOUR_TEMPLATE/common/tpl_header.php

Again... if tpl_header.php does not exist in this path, then you must create the path (by creating appropriate folders if necessary) and put a COPY of tpl_header.php into the appropriate folder.

Once you have a COPY of tpl_header.php in the right place, open it to EDIT.

Find the section shown below...

<!--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>
<?php if (HEADER_SALES_TEXT != '' || (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2))) { ?>
    <div id="taglineWrapper">
<?php
              if (HEADER_SALES_TEXT != '') {
?>
      <div id="tagline"><?php echo HEADER_SALES_TEXT;?></div>
<?php
              }
?>
<?php
              if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) {
                if ($banner->RecordCount() > 0) {
?>
      <div id="bannerTwo" class="banners"><?php echo zen_display_banner('static', $banner);?></div>
<?php
                }
              }
?>
    </div>
<?php } // no HEADER_SALES_TEXT or SHOW_BANNERS_GROUP_SET2 ?>
</div>
<br class="clearBoth" />
<!--eof-branding display-->

COMMENT OUT THE LINE:-

<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>

<!--** <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> **-->

Save the file.

28 Apr 2008, 8:37 AM
#4
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town &amp; London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Don't want a header logo...

... another way to do this is to leave all the original code intact, and create a TRANSPARENT gif measuring 192 x 64 px, and calling it logo.gif and saving it to the appropriate template's images folder...

28 Apr 2008, 9:14 AM
#5
Join Date:
Apr 2008
Posts:
7
Plugin Contributions:
0

Re: Don't want a header logo...

I must be dense. I don't understand what this means....

Firstly, you should be working in your CUSTOM TEMPLATE system to ensure ....

Do I create a folder called CUSTOM in every folder that I make a change in? OR do I do something else.


If I were to create a transparent gif wouldn't that take the place of the header I put on the site myself?

I'm not sure what I did on the site, but I somehow got rid of it :) I think by putting '' in stead of the file. But will look to follow the directions so that there aren't problems later. ;)


28 Apr 2008, 10:43 AM
#6
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Don't want a header logo...

Basically, you create a folder everywhere you see a Classic folder and place any files you modify in there. They can be named anything you want (not just CUSTOM) but they have to be all the same for any given template. When you select a particular template in Admin - Tools - Template Selection, Zencart will check that template's folders first. You can have as many templates as you want, too.

Here's a link to the FAQ on templates:

https://www.zen-cart.com/tutorials/index.php?article=142

I don't understand the transparent gif thing either, but the other way should work OK.

28 Apr 2008, 12:00 PM
#7
Join Date:
Apr 2008
Posts:
7
Plugin Contributions:
0

Re: Don't want a header logo...

Thank you. All done! ---well at least with this part :)

28 Apr 2008, 1:48 PM
#8
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town &amp; London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Don't want a header logo...

stevesh:

I don't understand the transparent gif thing either, but the other way should work OK.

If you leave the <div> in tpl_header.php, but remove the "logo.gif" from the DEFINE in english/header

... you will see a browser image place-holder where logo.gif ought to appear.

This is because the html is referring to an image... but the image isn't being referenced or called.

A transparent gif is just that... transparent. It will render in the browser, but will be see-thru... therefore enabling the background image to be seen un-impaired.

see it in action... https://www.embroiderella.co.uk/oldshop (hover over the place where you would normally see the "zencart" logo at the brown arch... there's a gif there, and it's solid black! - but the black has been made transparent, so you see right through it!

Neat huh :D