• Resolved Akasashasha

    (@akasashasha)


    Dears,

    using twenty eleven theme
    If you look at this page :
    https://www.cyran-shiatsu.com/?page_id=33
    and point to the menu “Anette Cyran” you’ll see that the sub menu is unreadable because of the blue color.

    I customised this :

    #access li.current-menu-item a {
    background-color: #2B406B;
    }

    so that the actual menu is highlighted with blue color but I’d like the submenu to stay in white color …
    some help please ?
    and sorry for my broken english … not inspired today ??

    thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Are you using a Child Theme or Custom CSS plugin?

    Thread Starter Akasashasha

    (@akasashasha)

    … sorry forgot this info … I created my own theme, a modified twenty eleven theme, so no worry with updates …

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    This isn’t a WordPress issue and support should be sought in CSS forums.
    Hint: ul ul a

    Thread Starter Akasashasha

    (@akasashasha)

    ???
    yes it is a wordpress issue !
    I’m using wordpress and it seems to me that this forum is the place to solve any wordpress problems isn’t it ?
    of course I’m not a css professional but I really don’t understand why you send me to another place : I created this topic so that this problem is solved here, in this forum, cause other wordpress users might benefit from an answer to this question …
    meanwhile, thank you for the “hint”, I’ll have a look at it and tell afterwards if I succeed or not.

    Thread Starter Akasashasha

    (@akasashasha)

    A friend gave me the solution :
    if you are using twentyeleven theme and want to customise the current menu background color, you should paste in your child style.css the following line :

    /* personalise background of current menu */
    #access li.current-menu-item > a {
    background-color:#code_of_color_you_want;
    }
    /* end of personalised background of current menu */

    .. my mistake was that I forgot the > before the a … and so the background color was also applied to the sub-menu.

    enjoy !

    omg! thank u so much!!!!!! ??
    i was looking for the answer to that for several days already!!!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Sub-menu background color ?’ is closed to new replies.