Totally Zenned
- Join Date:
- May 2004
- Location:
- Hong Kong
- Posts:
- 1,156
- Plugin Contributions:
- 0
Align buttons in tpl_product_info_display?
I had downloaded the purpleshades_template_for_zencart_v_1.3.zip.
And tested the original file of:
includes/templates/purpleshades/common/tpl_header.php
It has two problems from my first trial.
- You pointed out, it has a blank space over the header under IE.
- It will display double Banners if in admin -> Layout Settings, and the following is enabled:
Banner Display Groups - Header Position 1
With refer to the above file tpl_header.php
<!-- Show the banners table -->
<table class="centershop" border="0" cellspacing="0" cellpadding="0">
<?php
if (!isset($flag_disable_header) || $flag_disable_header == false) {
?>
<?php
if ($banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET1)) {
if ($banner->RecordCount() > 0) {
?>
<tr>
<td align="center"><div class="banners"><?php echo zen_display_banner('static', $banner); ?></div></td>
</tr>
<?Php
}
}
?>
<tr><td>
</table>
<!-- End Show the banners table -->
I changed some codes and only solved the above two problems.
Please modify the above codes to read as below:
<!-- Show the banners table -->
<?php
if (!isset($flag_disable_header) || $flag_disable_header == false) {
?>
<div id="headerWrapper">
<!-- End Show the banners table -->
And in the end of the file add one line:
</div>
Attached is the modified file for your reference.
.