Hi
Not sure if this is the reason, but the code for your menu is in the footer of the shop, not the header. Any reason for this?
Craig
Printable View
Hi
Not sure if this is the reason, but the code for your menu is in the footer of the shop, not the header. Any reason for this?
Craig
My guess is that it has nothing to do with the drop down menu, but an error in how you've created the pages or edited the coding.
If you type in the address of the new pages you've created, do they work? I.E.:
http://www.candycornclothing.com/sho..._page=designer
http://www.candycornclothing.com/sho...page=tutorials
There's an "About Us" mod in the download section that shows you all the files you have to create to make new pages work.
Also, can you give me an example of what you've tried adding to tpl_drop_menu.php?
Well not really.
Thanks for explaining it though. I was just comparing to my site and the instructions to put the dropdown it in the header file.
If you want me to keep my nose out in future, just say. ;-)
Thanks for a great mod once again.
Craig
Im trying to get my css header menu to look like it is suppose to be in the header by maybe adding some rounded corners on each of the drop downs does anyone know if this is possible and how to do it?
I have not seen this problem posted at this point. In reference to the EzPage menu, when I add the line <?php require(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/' . 'ezpages_drop_menu.php'); ?> To tpl_drop_menu.php, the body of the page goes away in Mozilla v3.0.5. All the menus but ezpages menu operate but when selecting a choice the body of the web site does not show anything. But In IE 7.xx I can still see the body and the ezpage menu still does not work. When I comment out this line of code everything goes back to normal. The other menus work and link fine.
Do I have the incorrect line of code in the file? Below is the content of my file: Thanks in advance for all your support on the mod – It’s a great addition to ZenCart.
Code:<!-- menu area -->
<div id="dropMenuWrapper">
<div id="dropMenu">
<ul class="level1">
<!--You can manually put whatever additional links you like in using this structure -->
<li class="submenu"><a href="<?php echo zen_href_link(FILENAME_DEFAULT); ?>"><?php echo HEADER_TITLE_CATALOG; ?></a>
<ul class="level2">
<li><a href="http://www.sensational-skin.com/sandbox/index.php?main_page=page_3">Directions to the office</a></li>
<!--<li><a href="<?php echo zen_href_link(FILENAME_PRODUCTS_ALL); ?>"><?php echo HEADER_TITLE_ALL_PRODUCTS; ?></a></li> -->
<li><a href="<?php echo zen_href_link(FILENAME_SPECIALS); ?>"><?php echo HEADER_TITLE_SPECIALS; ?></a></li>
<!-- <li><a href="<?php echo zen_href_link(FILENAME_ADVANCED_SEARCH); ?>"><?php echo HEADER_TITLE_SEARCH; ?></a></li> -->
</ul>
</li>
<!-- This start the Catorgies list I added - John -->
<?php
// load the UL-generator class and produce the menu list dynamically from there
require_once (DIR_WS_CLASSES . 'categories_ul_generator.php');
$zen_CategoriesUL = new zen_categories_ul_generator;
$menulist = $zen_CategoriesUL->buildTree(true);
$menulist = str_replace('"level4"','"level5"',$menulist);
$menulist = str_replace('"level3"','"level4"',$menulist);
$menulist = str_replace('"level2"','"level3"',$menulist);
$menulist = str_replace('"level1"','"level2"',$menulist);
$menulist = str_replace('<li class="submenu">','<li class="submenu">',$menulist);
$menulist = str_replace("</li>\n</ul>\n</li>\n</ul>\n","</li>\n</ul>\n",$menulist);
?>
<li class="submenu"><a href="<?php echo zen_href_link(FILENAME_DEFAULT); ?>"><?php echo "Our Products"; ?></a>
<ul class="level2">
<li><?echo $menulist;?> </li>
</ul>
</li>
<!--This ends the Catagories list I added - John -->
<!-- You can also add links on this side of your catefories menu -->
<li class="submenu"><a href="<?php echo zen_href_link(FILENAME_DEFAULT); ?>"><?php echo HEADER_TITLE_INFORMATION; ?></a>
<ul class="level2">
<li><a href="<?php echo zen_href_link(FILENAME_SHIPPING); ?>"><?php echo HEADER_TITLE_SHIPPING_INFO; ?></a></li>
<li><a href="<?php echo zen_href_link(FILENAME_PRIVACY); ?>"><?php echo HEADER_TITLE_PRIVACY_POLICY; ?></a></li>
<li><a href="<?php echo zen_href_link(FILENAME_CONDITIONS); ?>"><?php echo HEADER_TITLE_CONDITIONS_OF_USE; ?></a></li>
<li><a href="<?php echo zen_href_link(FILENAME_ABOUT_US); ?>"><?php echo HEADER_TITLE_ABOUT_US; ?></a></li>
<?php if (defined('FILENAME_SITE_MAP')) { ?>
<li><a href="<?php echo zen_href_link(FILENAME_SITE_MAP); ?>"><?php echo HEADER_TITLE_SITE_MAP; ?></a></li>
<?php } ?>
<li><a href="<?php echo zen_href_link(FILENAME_GV_FAQ, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_GV_FAQ; ?></a></li>
<li><a href="<?php echo zen_href_link(FILENAME_DISCOUNT_COUPON, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_DISCOUNT_COUPON; ?></a></li>
<li><a href="<?php echo zen_href_link(FILENAME_UNSUBSCRIBE, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_UNSUBSCRIBE; ?></a></li>
</ul>
</li>
<li class="submenu" id="ezpages"><a>In Office Service</a>
<ul class="level2">
<?php require(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/' . 'ezpages_drop_menu.php'); ?>
</ul></li>
<!-- this is where the orginal comment ended -->
</div>
</div>
<div class="clearBoth"></div>
Thank you, you were correct. My links were not active. Corrected
Thank you, I have downloaded it and made following corrections to make my links active.
Sure! I haven't done any further adjustments than this, all that I've done is mimicked the code for the about us page:
<li><a href="<?php echo zen_href_link(FILENAME_DESIGNER); ?>"><?php echo HEADER_TITLE_DESIGNER; ?></a></li>
<?php if (DEFINE_SITE_MAP_STATUS <= 1) { ?>
I'm not skilled enough to know whether there is additional coding required or not.
Thank you again! I need to buy you a coffee-- or tea.
Jen:blush:
Hi there.
Coffee please :cool:
If you add the code "FILENAME_DESIGNER" or "HEADER_TITLE_DESIGNER", those are called defines, and you have to define them in a languages file somewhere.
But instead of that, I'll give you a hint (the kind that makes you smack yourself on the head). Just enter the link instead:
(don't use the <?php if (DEFINE_SITE_MAP_STATUS <= 1) { ?> code, that is for the next link)Code:<li><a href="index.php?main_page=designer">Designer</a></li>