Is it possible to have different categories images for each language? Like the buttons in language packs.
Is it possible to have different categories images for each language? Like the buttons in language packs.
Yes. All images that are likely to include text are stored in /includes/templates/your_template/buttons/your_language/, and you can make a set for each language you use (in fact, you need to have a full set of them in each language folder).
corditreasures -
In #categories ul a {/*top categories*/
change display: list-item;
to display: block;
and add your background styling.
wow! That works wonder!Thank you very very much!
I think this is better to make it a background rather than list?
well anyway if someone is looking for this here's what i've done.
this is my old code
here's my new codeCode:#categories ul a {/*top categories*/ display: list-item; list-style: disc inside url(../images/point.gif);/*change to list-style: none; to remove bullet*/ background: no-repeat; border: none; margin: 0; padding: 0; }
again, thank you....Code:#categories ul a {/*top categories*/ display: block; background-image: url(../images/point.gif); background-repeat: no-repeat; background-position: center left; }
Regards![]()
I have both sets of language buttons stored in their respectives languages buttons directories.
But I came up with a problem. Since I'm using buttons with hover effects, I have to "declare" them in the stylesheet_categories_dressing.css file, and specify the path and names where the images are stored as explained in the help file. As a result, only one language directory can be specified, leaving the other language directory not specified in the stylesheet.
What is the solution for this?
autoace - Categories Dressing will affect the categories sidebox on every page unless you add special rules to limit it.
gjh42 - via category_dressing_defines, right?
Could you give me a simple example for the product listing page? Like only the 'active' category and its sub cats being displayed.
Your mod has awesome scope, still trying to get my head wrapped around ALL of it.
Thank you,
autoace
Cheo - You can have separate stylesheets for each language.
autoace - The rules would generally be in a stylesheet, not a PHP file. In short, you can add #indexBody in front of a copy of any style rule, and the different properties in that (like "display: none;") will apply only to "index" pages like category and product listings.
You could also modify the function cat_active_level_manage() in categories_dressing_functions.php.
Hello,
Glenn, how do I add links below the subtext? Is that possible?
And can I add a border to just 1 link? For example, the last link in the category box. I need to add a border-bottom without affecting the other links.
Thanks
You can add links as part of the subtext content, and use <br /> to put them on a new line. I've recently been trying to help someone who has put 20 or 30 links as "heading" content above one category.
You might need to do the "special category" mod to tpl_categories.php that is described in comments inside that file (part of the stock content). Then you can style this category with a border-bottom.
Glenn, I think that might have been me who has put 20+ links above one category. I reinstalled Zen-Cart so doing things from scratch again. Decided to just stick the category links in the category sidebox so no more hardcoded links there.
Ok, I have Category 21, and below this I have a Subtext that is acting as a Heading (I dont know other ways to have a heading below a category and I wont have any categories below so a Heading is not possible). Below this subtext, I would like to add some links that I can style using the stylesheet. I did what you said with the <br> but the links are just part of the whole subtext so I cant style them.
Also, I dont quite get what you mean about the special category mod. There are no other files. Im using version 2.7.3
Bookmarks