New Landing How can we help? Atelier CSS classes in menu items

Viewing 4 posts - 1 through 4 (of 4 total)
  • Posted in: Atelier
  • #274347
    skullo27
    Member
    Post count: 217

    Hi, could you tell me where I am going wrong… I am trying to use custom CSS class to colour particular menu items in my sub-menu. In this case, it is sale items, so I add the CSS class to the menu item “sale-sub-menu” and then add some custom CSS in the theme settings custom css area, but I cannot get it to show the change in colour. I think maybe that I need more in the class declaration? I have attached screen shots to show exactly what I have done.

    Thanks
    Sam

    Attachments:
    You must be logged in to view attached files.
    #274351
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    You need to observe the deeper selectors for the a link.

    li.menu-item.sf-mega-menu ul.sub-menu li.sale-sub-menu.menu-item>a {
        color: red;
    }
    li.menu-item.sf-mega-menu ul.sub-menu li.sale-sub-menu.menu-item>a:hover {
        color: yellow;
    }

    Thanks.

    #274514
    skullo27
    Member
    Post count: 217

    thanks that worked a treat! the debug info did say though that I did not need the li, ul elements though.

    thanks again.

    #274516
    David Martin – Support
    Moderator
    Post count: 20834

    Great, no problem!

    – David.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register