Change colour of a menu item Topic is solved

Need help with the Administration of your Joomla! 5.x site? This is the spot for you.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Post Reply
rgtr
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 211
Joined: Tue Sep 01, 2009 11:31 am
Location: Glasgow
Contact:

Change colour of a menu item

Post by rgtr » Wed Apr 24, 2024 1:37 pm

Hi

Please see here:
https://www.joomla51.com/tutorials/temp ... -in-joomla

The instruction is as follows:
Using your menu item ID we will add some CSS to your template using the 'Custom CSS' field of your templates parameters. Navigate to Extensions -> Templates and click in to your template settings. Select the 'Custom CSS' tab and add the following CSS to the field provided, editing the ID to match that of your menu item and the color to your own taste.

When they say "Navigate to Extensions -> Templates and click in to your template settings" do the actually mean Go to Templates, Site Templates, Select Cassiopeia Details and Files, and then select the User.css ?

I placed the code there . . . alongside all my other stuff, and it does not seem to work . . .
Checked on a different pc - an old W7 using Google Chrome to get round caching problems

Richard

Mr. Wimpy
Joomla! Explorer
Joomla! Explorer
Posts: 454
Joined: Fri Dec 02, 2005 10:46 am
Location: The Netherlands

Re: Change colour of a menu item

Post by Mr. Wimpy » Wed Apr 24, 2024 3:08 pm

Are you using a Joomla51 template? Or are you just refering to the tutorial?

If you use Cassiopeia, then yes the user.css file is correct.
Use the class of the menu-item.
Open the DevTools of your browser and select the menu-item. It will say something like <li class="nav-item item-#">...
Or check the ID in the backend.
If 123 is the ID of the menu item.

Code: Select all

.item-123 a { color: red; }

rgtr
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 211
Joined: Tue Sep 01, 2009 11:31 am
Location: Glasgow
Contact:

Re: Change colour of a menu item

Post by rgtr » Wed Apr 24, 2024 5:44 pm

Hi

Thanks for that

Now working.

I would like to add a tooltip as well. Any ideas ?

Richard

Mr. Wimpy
Joomla! Explorer
Joomla! Explorer
Posts: 454
Joined: Fri Dec 02, 2005 10:46 am
Location: The Netherlands

Re: Change colour of a menu item

Post by Mr. Wimpy » Thu Apr 25, 2024 3:08 pm

No, sorry...

Start a new topic with this question...


Post Reply

Return to “Administration Joomla! 5.x”