Re: CSS Dropdown menu for your header- With Categories!
Quote:
Originally Posted by
gourmets
Ok, but how to do you create them manually? This is one of the things I wasnt aware of how to do. Do I have to put the links into the actual file? Or is there something else? I dont understand the manual part.
Yep, you'll manually add them in includes/template/YOUR_TEMLATE/common/tpl_drop_menu.php
2 Attachment(s)
Re: CSS Dropdown menu for your header- With Categories!
I have installing this modul with academe template, but i have this problem in internet explorer, there is a space between my header image and the menu as you can see in this image Attachment 3706
but there is no problem with opera, safari and firefox
Attachment 3705
how to fix this issue ?? please help me.
thank you.
Re: CSS Dropdown menu for your header- With Categories!
Quote:
Originally Posted by
fireolg
I have installing this modul with academe template, but i have this problem in internet explorer, there is a space between my header image and the menu as you can see in this image
Attachment 3706
but there is no problem with opera, safari and firefox
Attachment 3705
how to fix this issue ?? please help me.
thank you.
Please post a link.
Re: CSS Dropdown menu for your header- With Categories!
Quote:
Originally Posted by
jettrue
Please post a link.
I'm still developing in my own machine, is there any file from my zencart configurations u need?
Re: CSS Dropdown menu for your header- With Categories!
Quote:
Originally Posted by
jettrue
Please post a link.
I'm only remove/disable the ezpages from the admin section, and then I placed this modul below the logo image, this works fine exept in the internet explorer.
Re: CSS Dropdown menu for your header- With Categories!
Quote:
Originally Posted by
fireolg
I'm only remove/disable the ezpages from the admin section, and then I placed this modul below the logo image, this works fine exept in the internet explorer.
Look at the source of the page, and paste for me from the logo section, to the beginning of the drop down menu.
Re: CSS Dropdown menu for your header- With Categories!
Quote:
Originally Posted by
jettrue
Look at the source of the page, and paste for me from the logo section, to the beginning of the drop down menu.
this is my tlp_header.php :
PHP Code:
<?php
// Display all header alerts via messageStack:
if ($messageStack->size('header') > 0) {
echo $messageStack->output('header');
}
if (isset($_GET['error_message']) && zen_not_null($_GET['error_message'])) {
echo htmlspecialchars(urldecode($_GET['error_message']));
}
if (isset($_GET['info_message']) && zen_not_null($_GET['info_message'])) {
echo htmlspecialchars($_GET['info_message']);
} else {
}
?>
<!--bof-header logo and navigation display-->
<?php
if (!isset($flag_disable_header) || !$flag_disable_header) {
?>
<div id="headerWrapper">
<div id="topBarWrap">
<div id="topBar">
<?php require(DIR_WS_MODULES . 'sideboxes/languages_header.php'); ?>
<?php require(DIR_WS_MODULES . 'sideboxes/currencies_header.php'); ?>
<div id="cart_header" class="topBox">Shopping Cart<br /><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><? echo $_SESSION['cart']->count_contents();?> item(s) - <? echo $currencies->format($_SESSION['cart']->show_total());?></a>
<!-- logoff menu -->
<br>>> <?php if ($_SESSION['customer_id']) { ?>
<a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a>
<?php
} else {
if (STORE_STATUS == '0') {
?>
<a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a>
<?php } } ?>
<<
</div>
<br class="clearBoth" /></div>
</div>
<div id="logoWrap">
<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>
<!--bof-drop down menu display-->
<?php require($template->get_template_dir('tpl_drop_menu.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_drop_menu.php');?>
<!--eof-drop down menu display-->
<div class="clearBoth"></div>
<div id="topLinks">
<?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) {
require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php');
} ?>
</div><br class="clearBoth" />
</div>
</div>
<?php } ?>
Re: CSS Dropdown menu for your header- With Categories!
I installed this great contribution, but right below the drop down header I still have the old menu with Home, Log in, Shopping cart buttons that I would like to remove.
I guess this is the same problem as in post #7.
In post #8, there is a way to fix it, but I dont know php, it might as well be a foreign language... :(
i tried editing the file, but no such luck
can sombody please explain on how to get rid of the old menu.
website: http://got-jdm.com/JDM
thank you
Re: CSS Dropdown menu for your header- With Categories!
Quote:
Originally Posted by
fireolg
this is my tlp_header.php :
PHP Code:
<?php
// Display all header alerts via messageStack:
if ($messageStack->size('header') > 0) {
echo $messageStack->output('header');
}
if (isset($_GET['error_message']) && zen_not_null($_GET['error_message'])) {
echo htmlspecialchars(urldecode($_GET['error_message']));
}
if (isset($_GET['info_message']) && zen_not_null($_GET['info_message'])) {
echo htmlspecialchars($_GET['info_message']);
} else {
}
?>
<!--bof-header logo and navigation display-->
<?php
if (!isset($flag_disable_header) || !$flag_disable_header) {
?>
<div id="headerWrapper">
<div id="topBarWrap">
<div id="topBar">
<?php require(DIR_WS_MODULES . 'sideboxes/languages_header.php'); ?>
<?php require(DIR_WS_MODULES . 'sideboxes/currencies_header.php'); ?>
<div id="cart_header" class="topBox">Shopping Cart<br /><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><? echo $_SESSION['cart']->count_contents();?> item(s) - <? echo $currencies->format($_SESSION['cart']->show_total());?></a>
<!-- logoff menu -->
<br>>> <?php if ($_SESSION['customer_id']) { ?>
<a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a>
<?php
} else {
if (STORE_STATUS == '0') {
?>
<a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a>
<?php } } ?>
<<
</div>
<br class="clearBoth" /></div>
</div>
<div id="logoWrap">
<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>
<!--bof-drop down menu display-->
<?php require($template->get_template_dir('tpl_drop_menu.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_drop_menu.php');?>
<!--eof-drop down menu display-->
<div class="clearBoth"></div>
<div id="topLinks">
<?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) {
require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php');
} ?>
</div><br class="clearBoth" />
</div>
</div>
<?php } ?>
Change ALL <br class="clearBoth" /> to <div class="clearBoth"></div>
and then CHANGE the current .clearBoth in stylesheet.css to this:
Code:
.clearBoth {
clear:both;
height:0;
font-size:0;
line-height:0;
margin:0;
padding:0;
}
Re: CSS Dropdown menu for your header- With Categories!
Quote:
Originally Posted by
ztotheetothen
I installed this great contribution, but right below the drop down header I still have the old menu with Home, Log in, Shopping cart buttons that I would like to remove.
I guess this is the same problem as in post #7.
In post #8, there is a way to fix it, but I dont know php, it might as well be a foreign language... :(
i tried editing the file, but no such luck
can sombody please explain on how to get rid of the old menu.
website:
http://got-jdm.com/JDM
thank you
Open up includes/templates/YOUR_TEMPLATE/common/tpl_header.php and remove everything from:
<!--bof-navigation display-->
to:
<!--eof-navigation display-->