fbpx
Welcome, Guest
Username: Password: Remember me

TOPIC: Custom background color for each active menu item

Custom background color for each active menu item 10 months 3 weeks ago #30514

  • michy5
  • michy5's Avatar
  • Offline
  • New Member
  • Posts: 2
  • Karma: 0
Hi all,

as the topic says, is there a way (also via css) to custom background color for each active menu item?
I use
Astroid Framework
Framework Version: 2.5.2
Template Version: 2.5.2
Joomla 3.9.28
JD Builder v1.11.3

Waiting for your answers.

Thank you
The administrator has disabled public write access.

Custom background color for each active menu item 10 months 3 weeks ago #30562

  • chandandeep
  • chandandeep's Avatar
  • Offline
  • Administrator
  • Posts: 4614
  • Thank you received: 652
  • Karma: 116
Hello,

Yes, It's possible. For this, you have added the custom class on every single menu item and write the code on that class.
See the screenshot.

Thanks,
Chandan
Attachments:
Thank You,
If you like our support and products, tweet us at joomdev and let the world know about it.

To know more about products check out the their documentation.
The administrator has disabled public write access.

Custom background color for each active menu item 10 months 1 day ago #30788

  • michy5
  • michy5's Avatar
  • Offline
  • New Member
  • Posts: 2
  • Karma: 0
Thanks Chandan

and sorry for my late but I was on holidays.
Your instructions were correct but I think I misspelled my question.
I wanted to know if there is an option to customize the background color of the menu item when that menu item is active.
For instance:
When menu item 1 is active the background color is green.
When menu item 2 is active the background color is yellow.
etc.

I tried to do some tests but I think there are some CSS classes of the template that do not allow me to do this customization.

Waiting for your answers.

Thanks
The administrator has disabled public write access.

Custom background color for each active menu item 9 months 4 weeks ago #30823

  • chandandeep
  • chandandeep's Avatar
  • Offline
  • Administrator
  • Posts: 4614
  • Thank you received: 652
  • Karma: 116
Sorry to say.

This type of option is not available. You have to follow the previous suggestion for this type of style.

Thanks,
Chandan
Thank You,
If you like our support and products, tweet us at joomdev and let the world know about it.

To know more about products check out the their documentation.
The administrator has disabled public write access.
Moderators: chandandeep
Time to create page: 0.355 seconds
Cron Job Starts