fbpx
Welcome, Guest
Username: Password: Remember me

TOPIC: (SOLVED) Change font color on only one item at main menu

Change font color on only one item at main menu 4 years 7 months ago #3215

  • helios
  • helios's Avatar
  • Offline
  • New Member
  • Posts: 2
  • Thank you received: 1
  • Karma: 0
Hello, im trying to change font color only on one item at main menu for ex. the word contact us only.
Ive tried to add a new class on navbar.less.css and call it on link css but didnt work. Can someone tell me how exactly can i do it? Thanks!
Last Edit: 4 years 7 months ago by helios.
The administrator has disabled public write access.

Change font color on only one item at main menu 4 years 7 months ago #3231

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

Please follow the below steps.

#1 Open menu item and add class in Link Class Stylee field like "anothercolor" from Link Type
#2 Now Open template.less file at the end of file paste the below code.

.t3-megamenu ul.nav li .anothercolor{ color:red; }

Note: Make sure Development Mode is on from the template setting.

Let us know if you have any question for us.

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.
The following user(s) said Thank You: helios

Change font color on only one item at main menu 4 years 7 months ago #3236

  • helios
  • helios's Avatar
  • Offline
  • New Member
  • Posts: 2
  • Thank you received: 1
  • Karma: 0
thank you very much it worked!!
The administrator has disabled public write access.
The following user(s) said Thank You: chandandeep
Moderators: chandandeep
Time to create page: 0.337 seconds
Cron Job Starts