New Landing How can we help? Themeforest Theme Support Dante Using custom css on menu item

Viewing 6 posts - 1 through 6 (of 6 total)
  • Posted in: Dante
  • #90401
    Loren
    Member
    Post count: 17

    I want to change the font colour and background colour of one menu item (Donate). I found a few examples of how to do that in the formus by adding a custom css under theme options but they don’t seem to be working for me. When I add the custom css class to the Menu Structure nothing changes. I’d appreciate any help on this.

    Thanks.

    #90517
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    Add this to your custom css:

    nav#main-navigation .menu li:last-child a {
      background-color: #e5e5e5;
      padding: 10px 17px 12px !important;
      color: #111111;
    }

    – Kyle

    #92291
    Loren
    Member
    Post count: 17

    Worked like a charm, thanks Kyle!

    #92293
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Great! No problem

    – Kyle

    #92308
    Loren
    Member
    Post count: 17

    I ran into a little problem after all. In addition to making the last menu item in the main header a different color (which is what I wanted) it also made the last item in the drop down menu a different color (which I didn’t want). Any idea how to get the former without the latter?

    #92333
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Try this instead:

    nav#main-navigation .menu > li:last-child a {
      background-color: #e5e5e5;
      padding: 10px 17px 12px !important;
      color: #111111;
    }

    – Kyle

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

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

License required for one of the following items
Login and Registration Log in · Register