Ah, right:)
You can add a <span class="subtextLink1"> </span> around each link
(or add the class to the link <a href="whatever" class="subtextLink1"> </a>)
and these links can now be addressed individually.
Printable View
Ah, right:)
You can add a <span class="subtextLink1"> </span> around each link
(or add the class to the link <a href="whatever" class="subtextLink1"> </a>)
and these links can now be addressed individually.
Did what you said but unfortunately, it does not work. Below is what I have in the define and stylesheet.
define ('CAT_BOX_SUBTEXT_21','Manufacturers
<br /><a href="/" class="subtextLink1">Link1</a>|1|');
.catBoxSubtext1 {background:#505050; color:#ffffff; font-family:tahoma, arial, helvetica, verdana; font-size:11px; font-weight:bold; margin-top:10px; padding:7px 0 7px 27px;}
.subtextLink1 {background:none; color:#ffffff; font-family:tahoma, arial, helvetica, verdana; font-size:11px; margin:0; padding:0;}
I also tried ".subtextLink1 a" but did not make any difference.
You might need
#categories .subtextLink1 {
to give it enough priority. A good way to tell if this is the case is to add !important in the property value. If it then shows, you just need more specificity or priority; if not, something is wrong with the way you have the rule written, or there is some error in your stylesheet.
That did work in a way but since I have padding on the CatBoxSubtext1, the links automatically have this padding as well even if I specify padding:0;.
Anyway, I think I'll just use a category instead and use that to get a heading and links.
Thanks for the help tho and for putting the time.
You can use negative margins on the sub-links to pull them back out and overcome the padding...
autoace - You can actually get the active category tree (only) displayed on category/product listing and product info pages, and all of the top cats on other pages, by a setting in categories_dressing_defines.php.
define('CAT_BOX_ACTIVE_LEVEL', '2|0|1'); //active only (all tops when no cat selected)
gjh42 - Thank you very much. Just not a lot of time currently to test and see all the capacity that your mod has. Absolutely great mod, hope to see it 'standard' in ZC 2.0!
I agree with autoace. This is definitely one of the very best mods there is.
I'm just wondering if you can help me figure seomthing out on www.silkblooms.co.uk as I'm planning to create a new major category called 'Hire Products'. How would I make it appear in bold underneath 'All Products' and above the seperator line so it is grouped together with 'New Products' and 'All Products'?
As you have already customized tpl_categories.php to show the new/all/etc. links above the categories instead of the standard location below the categories, and you want the new category between the links and the categories, not between two links, it should only require settings and not more code changes.
First, turn off the "Categories separator between links" in Configuration > Layout Settings (assuming this is still dynamic and not hard-coded into your new layout).
Then create your new category and set its order so it appears first in the list, and give the Weddings category a divider above it:
define ('CAT_BOX_HEADING_1','0|1||');//divider only - style 1
Thanks Glenn, that's did it, but how do I give this new category an individual style name so I can add bottom padding to push it up into the group above?