Argh, the only way to get the subcategories to align correctly was to put in </br> so I guess they'll have to stay in for now...
Argh, the only way to get the subcategories to align correctly was to put in </br> so I guess they'll have to stay in for now...
In that case try changing it toAt least that will help with the html.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><br /></li>';
A little help with colors.
myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.
You can fix the disappearing subcats by changing the first 0 to -1px (top margin):
stylesheet.css (line 408)There appears to be a 1px border around the <ul> and when the cursor is moved slowly over it, the border hides the container from the mouse... strange I know, but the negative top margin fixes the flicker.Code:#navCatTabsDropdown li ul { background-color: #AF5980; color: #F6D2E4; margin: -1px 0 2px 2px; position: absolute; visibility: hidden; width: 215px; z-index: 100; }
dbltoe - thanks for (again) replying and your suggestion! I tried it and for some bizarre reason it went back to the old alignment with everything listing vertically except for the "Clarity Spray" under "Therapeutic Scents" and "Hair" under "Personal Care" which were aligning right. I think I'll just have to live with the bad html...
gjh42 - you're a genius. I'm sure you get that a lot on here but you really really are! Thanks- your negative margin worked a treat
I guess I'm Gonna be forced to load this on a test site just to find out what they've left out. On a mission![]()
A little help with colors.
myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.
A man on a mission is a scary thing. I'm sorry to cause you extra work.. it looks ok so I'm not too fussed on the coding. That said, if you need the files or anything else to expedite the process please let me know...
Just a small part of the pie one might think. Au Contraire, Mon Frere!
A search engine cannot see images, font colors, etc. When spidering a site, they rely on the code. If the code ain't up to snuff the spider can lose its way. If they can't discover your categories or products due to bad code......
Everyone harps on SEO. Well, Zen Cart comes "out of the shrinkwrap" compliant with html. Accepting the fact that a one-page mod breaks it so terribly is not an option for me.
Later, I will post my findings in the thread for the mod. My search is not complete as the problem is alluding me. Perhaps the creator can see the glitch that I cannot. I will put a link to my post here, as well.
Reader's Digest version is that (other than the <br /> outside the <li> tags) there is a problem with the code that produces the product listing for main categories without sub-categories. For now, you can remove all the <br /> tags from every where butOut of the box, the mod needs no changes in css that I can see.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 />';
Last edited by dbltoe; 9 Jun 2011 at 04:25 PM.
A little help with colors.
myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.
Ahh.. right! Ok so precision is the key here.
I tried removing all the </br> tags except for the one you mentioned above and the problem still occurred...
The only thing that may need tweaking in css is the disappearing dropdown as a result of margin for the box.
gjh42 had a great fix:
#navCatTabsDropdown li ul {
background-color: #AF5980;
color: #F6D2E4;
margin: -1px 0 2px 2px;
position: absolute;
visibility: hidden;
width: 215px;
z-index: 100;
}