Last edited by dbltoe; 8 Nov 2017 at 10:00 PM.
Are You Vulnerable for an Accessibility Lawsuit?
myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
Free SSL, Domain, and MagicThumb with semi-annual and longer hosting.
when i put # in that location i see them on my page
#<!--bof branding display-->
#<div id="logoWrapper" class="group onerow-fluid">
# <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>'; ?>
#<?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>
#</div>
#
#<!--eof branding display-->
for some reason no matter what i put in the header.php it was using the size of my image which was 1200x300. i incrementally increased the size and noticed that it changed with it. not the ideal way to fix it but i guess it works.
Sorry, I was speaking of the menu that shows up when you reply to a post. The last menu group on the right has # <> and a php icon. When displaying code from a file, one should click on the # to create a block for the code to be presented.
The copy of your file that I was asking for would look likeThe area that may be causing the problem is the one in red.Code:<!--bof branding display--><div id="logoWrapper" class="group onerow-fluid"> <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>'; ?> <?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> </div> <!--eof branding display-->
I've found an old thread that seems to indicate that the defined height and weight is not really being used for the page creation but, instead, the actual size of the image. https://www.zen-cart.com/showthread....ight-in-header.
For you now, if everything is working, there's no need to do any further. However, I would like to explore this further myself.
Please confirm that your includes/languages/english/responsive_classic/header.php DOES NOT contain 1425 x 356 for the height and width settings.
THANX
Are You Vulnerable for an Accessibility Lawsuit?
myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
Free SSL, Domain, and MagicThumb with semi-annual and longer hosting.
Okay, we're posting out of order a bit but, it looks as if the old problem exists.
Please replace the 100% in the header.php and we'll try to fix the other tpl file.
Are You Vulnerable for an Accessibility Lawsuit?
myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
Free SSL, Domain, and MagicThumb with semi-annual and longer hosting.
it does not, it shows 100%, let me look at that code and comment the red part out
Okay, I have confirmed that there is a bug in the includes/templates/template_default/common/tpl_header.php file. The same bug exists in the includes/templates/responsive_classic/common/tpl_header.php file. If you have copied either to a YOUR_TEMPLATE folder you will have copied the problem with it.
To fix - Find the version of the includes/templates/YOUR_TEMPLATE/common/tpl_header.php file that you are currently using in your shop.
Replace the branding display sectionwith the following codeCode:<!--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-->I've highlighted the actual change in red for those of you who don't want the easy way out by copying the section.Code:<!--bof branding display--><div id="logoWrapper" class="group onerow-fluid"> <div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '"><img src="' . DIR_WS_TEMPLATE . 'images/' . HEADER_LOGO_IMAGE . '" height="' . HEADER_LOGO_HEIGHT . '" width="'. HEADER_LOGO_WIDTH .'" alt="' . HEADER_ALT_TEXT . '" title="' . HEADER_ALT_TEXT . '"></a>' ?> <?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> </div> <!--eof branding display-->
What this does is actually USE the settings from includes/languages/english/header.php OR includes/languages/english/YOUR_template/header.php when resizing the logo image to a greater width or height than the image itself.
If a person was trying to make a 700 x 200 logo be 1400 x 400 or to give the image 100% of the width, the system would never go past the actual image size.
This has been around for some time and is still present in 1.5.6 and 1.6.0 development files.
Are You Vulnerable for an Accessibility Lawsuit?
myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
Free SSL, Domain, and MagicThumb with semi-annual and longer hosting.
Are You Vulnerable for an Accessibility Lawsuit?
myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
Free SSL, Domain, and MagicThumb with semi-annual and longer hosting.
this has been replaced and original image is back. and now showing to be correct. thank you for the help
In post 27, above there is a mistake in the correction code.Should be:Code:<!--bof branding display--> <!-- Changed by JET --><div id="logoWrapper" class="group onerow-fluid"> <div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '"><img src="' . DIR_WS_TEMPLATE . 'images/' . HEADER_LOGO_IMAGE . '" height="' . HEADER_LOGO_HEIGHT . '" width="'. HEADER_LOGO_WIDTH .'" alt="' . HEADER_ALT_TEXT . '" title="' . HEADER_ALT_TEXT . '"></a>' ?> <?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> </div> <!--eof branding display-->Left off a </div> which I highlighted in red.Code:<!--bof branding display--> <!-- Changed by JET --><div id="logoWrapper" class="group onerow-fluid"> <div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '"><img src="' . DIR_WS_TEMPLATE . 'images/' . HEADER_LOGO_IMAGE . '" height="' . HEADER_LOGO_HEIGHT . '" width="'. HEADER_LOGO_WIDTH .'" alt="' . HEADER_ALT_TEXT . '" title="' . 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> </div> <!--eof branding display-->
Are You Vulnerable for an Accessibility Lawsuit?
myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
Free SSL, Domain, and MagicThumb with semi-annual and longer hosting.
Bookmarks