Thanks Andrew
nearly there!
please look at www.derekbryant.co.uk/zen
is there a way to sort out the drop down menu width and placement?
thanks for your help
Derek
Thanks Andrew
nearly there!
please look at www.derekbryant.co.uk/zen
is there a way to sort out the drop down menu width and placement?
thanks for your help
Derek
Add a width to this if desired.Code:#navCatTabsDropdown * li ul { visibility:hidden; position:absolute; left: 35%; padding: 0.5em; z-index: 100; }
many thanks Andrew & Glen
I've added a width statement - www.derekbryant.co.uk/zen
I actually want to use this on one of my active sites, this is just a trial site for downloads
many thanks once again for your time
Derek
Hello, This mod is great.
However, I have one small problem... my subcategories are not listing properly. Some of them appear next to the the previous or are randomly aligned right rather than underneath it. It's most likely something fixed with the CSS but I've tried a bunch of stuff and nothing works so far.
To see exactly what I mean visit www. queenib. com, the most obvious example is beneath the womenswear tab or the lingerie tab as viewed in IE, Firefox and Safari.
I'm baffled.![]()
It looks like you could be using an old version. Try the version posted here: http://www.omnicia.com/Zencart%20Cat...own%20Menu.zip
Did you add the <br /> tags between list items? The stylesheet has all <li> in #navCatTabsDropdown floated left, which negates the usual list-item behavior. You can change that for submenus of the main drop menu with this:It seems to be clumsy handling of the setup - perhaps the new version fixes that.Code:#navCatTabsDropdown li li {float: none;}
Thanks guys! I haven't installed the new version yet but that CSS fixed it right up.
While I'm here I have another question which I haven't been able to find an answer for yet... Do you know how to show the dropdown for only subcategories and disable the dropdown for products?
For example under the 'powder room' category.
Comment out or delete the following:
PHP Code:
$products_tab_query="SELECT p.`products_id`, pd.`products_name`, pd.`language_id` FROM ".TABLE_PRODUCTS." p, ".TABLE_PRODUCTS_DESCRIPTION." pd WHERE p.`master_categories_id`='".(int)$categories_tab->fields['categories_id']."' AND p.`products_id`=pd.`products_id` AND pd.`language_id`='".(int)$_SESSION['languages_id']."' ORDER BY p.`products_sort_order`;";
$products_tab=$db->Execute($products_tab_query);
if($products_tab->RecordCount()>0)
{
echo '<ul>';
while (!$products_tab->EOF)
{
$cPath_new=zen_get_path($categories->fields['categories_id']);
$cPath_new=str_replace('=0_', '=', $cPath_new);
echo '<li>'.'<a href="'.zen_href_link(zen_get_info_page($products_tab->fields['products_id']),$cPath_new. '&products_id=' . $products_tab->fields['products_id']) . '">'.$products_tab->fields['products_name'].'</a></li><br />';
$products_tab->MoveNext();
}
echo '</ul>';
}
Having issue with drop down in IE7. When you mouseover a category the drop down appears to the right of the selected category and subcategories cannot be chosen.
Wasn't sure if this was a problem for anyone else. Works fine in IE8.
Need to find out what needs to be changed to correct the issue.
Thanks!
Bookmarks