X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Category Box - links & color (https://forum.x-cart.com/showthread.php?t=46115)

mrerotic 03-08-2009 01:16 PM

Category Box - links & color
 
How can you change only the main category box links colors and decorations?

I have tried everything. Please if anyone can tell me how to change this for just the "Main category" box on the left only I would appreciate it.

- THANK YOU IN ADVANCE -

mrerotic 03-08-2009 03:30 PM

Re: Category Box - links & color
 
Basically right now the font colors are all blue and when you mouse over them they show underline. I want to change only the categories font color and remove the text-decoration: underline from this area as well. Anyone??? psst... PLEASE

Victor D 03-09-2009 12:06 AM

Re: Category Box - links & color
 
append this to your skin1/main.css
Code:

.menu-categories-list  ul li a:link, .menu-categories-list ul li a:visited,
.menu-categories-list ul li a:hover, .menu-categories-list ul li a:active {
 color:#put_your_color_here;text-decoration:none;
}


mrerotic 03-09-2009 06:01 AM

Re: Category Box - links & color
 
hey victor thanks :) Is there anyway you can give me your opinion on:
http://forum.x-cart.com/showthread.php?t=45126

Sorry to link you to it like this. But any help would be much appreciated.

mercury 03-09-2009 08:33 AM

Re: Category Box - links & color
 
How I change the font size, font family family to the Categories menu list?
I did the separate class in main.css, but doesn't work... any advice? :(

mercury 03-09-2009 01:11 PM

Re: Category Box - links & color
 
I have searched for it. But did not find '.VertMenuItems'

mercury 03-09-2009 01:12 PM

Re: Category Box - links & color
 
Mine is 4.2 version, so I can't find the '.VertMenuItems' in the main.css

Victor D 03-10-2009 12:00 AM

Re: Category Box - links & color
 
The recipe is the same
Code:

.menu-categories-list  ul li a:link, .menu-categories-list ul li a:visited,
.menu-categories-list ul li a:hover, .menu-categories-list ul li a:active {
font-family:tahoma;
}


mercury 03-10-2009 07:24 AM

Re: Category Box - links & color
 
Perfect! That worked! Thank you very much!

alec.thomas 03-18-2009 09:26 AM

Re: Category Box - links & color
 
Victor, could you tell me how to change the bolded decoration only to the selected sub category? Because I did a mod where whatever category is active, it drops down all the subcategorys beneath it. Thanks

Victor D 03-19-2009 12:09 AM

Re: Category Box - links & color
 
Quote:

Originally Posted by alec.thomas
Victor, could you tell me how to change the bolded decoration only to the selected sub category? Because I did a mod where whatever category is active, it drops down all the subcategorys beneath it. Thanks

Since your skin is modified I need your customer/categories.tpl to do it.
Please post it here

alec.thomas 03-19-2009 04:32 AM

Re: Category Box - links & color
 
oh sorry, here it is:

{*
$Id: categories.tpl,v 1.33 2008/11/06 16:53:53 max Exp $
vim: set ts=2 sw=2 sts=2 et:
*}
{capture name=menu}
{if $active_modules.Fancy_Categories}
{include file="modules/Fancy_Categories/categories.tpl"}
{assign var="additional_class" value="menu-fancy-categories-list"}
{else}
{assign var=thiscat value=$cat}
{assign var=par value=0}
{foreach from=$categories item=cats}
{assign var=Mcatid value=$cats.categoryid}
{foreach from=$allsubcategories.$Mcatid item=subb}
{if $subb.categoryid eq $thiscat}
{assign var=par value=$subb.parentid}
{/if}
{/foreach}
{/foreach}
<ul>
{foreach from=$categories_menu_list item=c}
<li><a href="home.php?cat={$c.categoryid}" title="{$c.category|escape}">{$c.category}</a></li>
{if $c.categoryid eq $par}
{foreach from=$allsubcategories.$par item=sub}
{if $sub.parentid eq $c.categoryid}
<a href="home.php?cat={$sub.categoryid}" class="subMenuItem">-{$sub.category}</a>
{/if}
{/foreach}
{/if}
{foreach from=$allcategories item=cat}
{if $cat.parentid eq $c.categoryid}
<a href="home.php?cat={$cat.categoryid}" class="subMenuItem">-{$cat.category}</a>
{/if}
{/foreach}
{/foreach}
</ul>
{assign var="additional_class" value="menu-categories-list"}
{/if}
{/capture}
{include file="customer/menu_dialog.tpl" title=$lng.lbl_categories content=$smarty.capture.menu}

Victor D 03-19-2009 05:42 AM

Re: Category Box - links & color
 
Something like this:
Code:

{*
$Id: categories.tpl,v 1.33 2008/11/06 16:53:53 max Exp $
vim: set ts=2 sw=2 sts=2 et:
*}
{capture name=menu}
    {if $active_modules.Fancy_Categories}
          {include file="modules/Fancy_Categories/categories.tpl"}
          {assign var="additional_class" value="menu-fancy-categories-list"}
    {else}
        {assign var=thiscat value=$cat}
        {assign var=par value=0}
        {foreach from=$categories item=cats}
            {assign var=Mcatid value=$cats.categoryid}
            {foreach from=$allsubcategories.$Mcatid item=subb}
                  {if $subb.categoryid eq $thiscat}
                    {assign var=par value=$subb.parentid}
                  {/if}
            {/foreach}
        {/foreach}
          <ul>
        {foreach from=$categories_menu_list item=c}
<li><a {if
$c.categoryid eq $thiscat}class="selcat"{/if} href="home.php?cat={$c.categoryid}" title="{$c.category|escape}">{$c.category}</a></li>
            {if $c.categoryid eq $par}
                {foreach from=$allsubcategories.$par item=sub}
                    {if $sub.parentid eq $c.categoryid}
                        <a href="home.php?cat={$sub.categoryid}" class="subMenuItem
{if $sub.categoryid eq $thiscat}selcat{/if}">-{$sub.category}</a>
                    {/if}
                {/foreach}
            {/if}
            {foreach from=$allcategories item=cat}
                {if $cat.parentid eq $c.categoryid}
                    <a href="home.php?cat={$cat.categoryid}" class="subMenuItem
{if $cat.categoryid eq $thiscat}selcat{/if}">-{$cat.category}</a>
                {/if}
            {/foreach}
        {/foreach}
          </ul>
          {assign var="additional_class" value="menu-categories-list"}
    {/if}
{/capture}
{include file="customer/menu_dialog.tpl" title=$lng.lbl_categories content=$smarty.capture.menu}



also add this to you main.css
Code:

.menu-categories-list ul li a.selcat{font-weight:bold}

alec.thomas 03-23-2009 06:44 AM

Re: Category Box - links & color
 
Thank you very much Victor, works perfectly!

BeansMedia 03-23-2009 11:47 AM

Re: Category Box - links & color
 
Hello, i have a different problem on my left column all the boxes have different text colours, i looks a mess.

I have tried skin css but nothing changed (i have thrown away cookies)

is there a solution to make all the text colours in the left column the same or do you have to edit the boxes seperatly.

the boxes are:

manufacturers

news

categories

most sold

i have searched for 3 days but did not find the answer

Victor D 03-24-2009 03:45 AM

Re: Category Box - links & color
 
Quote:

Originally Posted by BeansMedia
Hello, i have a different problem on my left column all the boxes have different text colours, i looks a mess.

I have tried skin css but nothing changed (i have thrown away cookies)

is there a solution to make all the text colours in the left column the same or do you have to edit the boxes seperatly.

the boxes are:

manufacturers

news

categories

most sold

i have searched for 3 days but did not find the answer


I need to know what template is used in your store.
If it isn't made by Qualiteam provide me with URL.

ChristineP 03-27-2009 04:59 AM

Re: Category Box - links & color
 
To change the text colors, you will change the class in the styles sheet.


Quote:

Originally Posted by BeansMedia
Hello, i have a different problem on my left column all the boxes have different text colours, i looks a mess.

I have tried skin css but nothing changed (i have thrown away cookies)

is there a solution to make all the text colours in the left column the same or do you have to edit the boxes seperatly.

the boxes are:

manufacturers

news

categories

most sold

i have searched for 3 days but did not find the answer



All times are GMT -8. The time now is 05:40 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.