I am trying to change the colour of a menu item. I have done this for a Drupal 6 website, however, the same tactic is not working on Drupal 7?
This is the Drupal 6 website: http://www.mangolive.com/
The "Client Login" Tab in the Main Menu is purple. This works excellent.
This is the Drupal 7 website: http://www.itools.co.nz
In this page, the "Client Login" remains in bold black colour. I want to make this purple as well, how can I do this?
When I did this for the Drupal 6 site it was easy – I just added a couple of lines of code to the style sheet:
#nav li.last a {
color: #6e3c8c;
I just did the same for the Drupal 7 style sheet but didn’t make any difference so I’m sure it works differently on Drupal 7. The page source says the class is now called ‘last leaf’ but that didn’t work either:
< li class="last leaf">< a href="https://telecom.itoolsonline.com/" title="Client Login" >Client Login< /a>
There are spaces within the code to avoid making it readable by Drupal html
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | 1855648-7.patch | 1.39 KB | bhumikavarshney |
| #5 | error.png | 48.04 KB | bhumikavarshney |
| #3 | change-menu-items-background.3.patch | 1.02 KB | hitvika_verma |
| #3 | change-menu-item-background.png | 36.5 KB | hitvika_verma |
Comments
Comment #1
nevets commented"last leaf" is not a class, it is two classes "last" and "leaf".
I see no element with an id 'nav', I do see one with the id of 'block-system-main-menu' so you might try
Comment #2
Drupilla commentedThanks! It worked
Comment #2.0
Drupilla commentedHTML code was mistaken as an actual code, so I had to break it up to make it unreadable by the system
Comment #3
hitvika_verma commentedComment #4
hitvika_verma commentedComment #5
bhumikavarshney commentedHi @hitvika_verma,
Patch is not working for me.
Please check the Screenshot once.
Comment #6
bhumikavarshney commentedComment #7
bhumikavarshney commentedUploaded updated patch
Comment #8
vikashsoni commented@ BhumikaVarshney i am getting same error patch is not working ....
Checking patch css/style.css...
error: css/style.css: No such file or directory