Selected category in sidebar Menu is highlighted

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Mon Apr 07, 2014 10:34 am
Reply with quote
Report this post
Hello,

The web site : http://www.monparfum.net, I left sidebar that displays the product categories available.

I would like the selected category is highlighted via the dominant color of the template. I noticed that there is a class "active" to the main menu. Would it be possible to do the same for my sidebar?

If so, how?

Damien, thank you.
User avatar
Junior Boarder

GK User
Mon Apr 07, 2014 10:56 am
Reply with quote
Report this post
Hi,
maybe do this way,
you added general URL, but we have to talk about a specific example
lets look at : http://www.monparfum.net/catalogue-monp ... de-massage

For example:
Code: Select all
.VmOpen {
    background:  #FF0000;
}
User avatar
Platinum Boarder

GK User
Mon Apr 07, 2014 10:59 am
Reply with quote
Report this post
So if you want to use this same color as in Main Menu for "active" - in this case "open" VM category use
Code: Select all
.VmOpen a {
    color: #EA1E85 !important;
}

CSS Tip: http://www.gavick.com/documentation/joomla-templates/customizing-joomla-template/how-to-add-custom-css-to-joomla-template/
User avatar
Platinum Boarder

GK User
Mon Apr 07, 2014 11:30 am
Reply with quote
Report this post
Thank you for your quick response.

To go a little further, is it possible to do the same for a sub category menu? see the link: http://www.monparfum.net/catalogue-monp ... ique-homme.

I would like the Aromatic link is the only color # EA1E85. Is this possible?
User avatar
Junior Boarder

GK User
Tue Apr 08, 2014 8:20 am
Reply with quote
Report this post
Probably yes, but right now you have Offline mode, so how I can help :whistle:
User avatar
Platinum Boarder

GK User
Tue Apr 08, 2014 8:27 am
Reply with quote
Report this post
Connect with :
id : gkadmin
pwd : ********
User avatar
Junior Boarder

GK User
Tue Apr 08, 2014 11:00 am
Reply with quote
Report this post
Now server is offline/dead ? :whistle:
User avatar
Platinum Boarder

GK User
Tue Apr 08, 2014 9:12 pm
Reply with quote
Report this post
Actually, we met a big worry on this server today. It is currently set semblerais but there was a hardware problem. We are therefore not sure it does not happen tomorrow.

You can try to connect to it as soon as possible?

Let me know.
User avatar
Junior Boarder

GK User
Tue Apr 08, 2014 9:29 pm
Reply with quote
Report this post
Now is working,
but I have for you bad news.
It can't be done :(
SubMenu active items don't have any class, so I can not highlight selected, sorry.

p.s.
Search on JED maybe you will find another module which may have better features.
User avatar
Platinum Boarder

GK User
Wed Apr 09, 2014 2:10 pm
Reply with quote
Report this post
Pawel F wrote:
SubMenu active items don't have any class, so I can not highlight selected, sorry.


Is it possible to add class to a submenu?

If so, how?

Thanks
User avatar
Junior Boarder

GK User
Wed Apr 09, 2014 4:13 pm
Reply with quote
Report this post
No is not possible to add active class - just like that, with click & click.
You have to hire php developer to customization or use another module.
User avatar
Platinum Boarder

GK User
Wed Apr 09, 2014 6:44 pm
Reply with quote
Report this post
Ok, I have a PHP developer, I'll tell him.

Thank you.
User avatar
Junior Boarder


cron