OK, it works because when the switch is processed, $current_path is still set on the last category that was processed. Yes, it will work correctly for every subcategory you hard-code into the switch.
OK, it works because when the switch is processed, $current_path is still set on the last category that was processed. Yes, it will work correctly for every subcategory you hard-code into the switch.
Hallo, sorry for my question... I am begginer...
I install Categories Dressing and I need change a look. In stylesheet_categories_dressing.css I change global settings like colors for all categories. It is OK. Now I need change one category only. For example: /index.php?main_page=index&cPath=2.
In stylesheet_categories_dressing.css I have:
ul#catGroup2 {
border: 1px solid #bd6699;
background: #bbeeff;
position: relative;
left: -1.3em;
top: 0.2em;
}
In categories_dressing_defines.php I have:
define ('CAT_BOX_HEADING_2','1|0|aaa.gif|');
But I see nothing. All is the same. What I do wrong? I use ZenCart 1.3.8 in czech lanuage. Thank you for reply.
The information you posted looks ok, so I will have to see your site live to tell what is wrong. Please post a link.
Thank you for reply. URL is here: http://sexshoponline.cz/obchod/index...=index&cPath=2
Now I need to change one category only. I need to add picture in front text. For example: picture + space + text. Is it possible? I don't know if I have right settings...
Whatever I change in CSS I see nothing...
You are usingCode:/*example for individual category as bg image*/ #categories li a.catBg2 { background-image: url(../images/zacatek.gif); height: 30px; } #categories li a.catBg2:hover { background-image: url(../images/catbg25hover.gif); } /*example for custom individual category styling*/ #categories li.promuze a { border-top: 3px dotted #112233; background-color: #aabbff; color: #000000; padding: 1em 0em; } .promuze { border-top: 1px dotted #112233; color: #000000; background-image: url(../images/zacatek.gif); } ul#catGroup2 { background-image: url(../images/zacatek.gif); background-repeat: no-repeat; }
background-image: url(../images/zacatek.gif);
but the code will not look for zacatek.gif, and will never display this set of images.
You need to name the image catbg2.gif, and then see what shows up. This will only work to replace the text with a background image, not add a background image to the text.
It appears that you have tried several different methods to get the results you want. Do you want a unique image for category 2 (promuze)? Or will the image be the same for all of the top categories?
For a unique image at the left of the name for one category, do the tpl_categories.php example like thisand in the stylesheet like this example: #categories li.cat-holiday a {}PHP Code:
case ($box_categories_array[$i]['path'] == 'cPath=2'):
$new_style = 'promuze';
break;
Code:#categories li.cat-promuze a { background: #aabbff url(../images/zacatek.gif) no-repeat left center; color: #000000; padding: 1em 0em 1em 3.5em;/*this moves the text away from the left to leave space for the image*/ }
Last edited by gjh42; 17 Feb 2009 at 07:17 PM.
I am trying it but still nothing... Is it possible to send you PM with FTP, please? Now I don't know what can I do... I am wierdo... I know...
I need menu like this: http://st.fri.uniza.sk/~chudoba/sexshop07.jpg
Or I can send you necesary files like CSS and PHP.
In my opinion HTML page can't see style #categories li.cat-promuze a
Here is a part of HTML code:
<div id="categoriesContent" class="sideBoxContent">
<a class="promuze" href="http://sexshoponline.cz/obchod/index.php?main_page=index&cPath=2"><span class="category-subs-parent">PRO MUŽE</span></a><br />
<a class="category-products" href="http://sexshoponline.cz/obchod/index.php?main_page=index&cPath=2_10">Afrodisiaka a Feromony</a><br />
The picture of the categories menu you want is what I really needed to give the right advice.
The "$new_style = 'promuze';" code is one way to get what you want for the categories, but it requires a separate "case" for every category and subcategory.
You have been working hard - I see you now have most of the top and subcategories done.
The most efficient approach would be to use category groups, so you can easily get the different bullets on the subcategories, but since you are so close with the method you are using, keep going as you are.
Thank you for your advise :-) Can you help me with one thing? I need decrease high between categories. Where can I set this?
Bookmarks