Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #19953

    I want to add a menu “Free Trial” in my Navigation Menu. Only this should be Right Aligned. How can I do that?

    #105718

    Hi,

    Add a custom menu on Appearance > Menu, place it at the very bottom. Now edit custom.css then place this code

    .main_menu {
    width: 100%;
    }

    #top .main_menu .menu li:last-child {
    position: absolute;
    right: -30px;
    }

    #top .main_menu .menu li:last-child a {
    border: none !important
    }

    Adjust the right values for the #top .main_menu .menu li:last-child selector.

    Regards,

    Ismael

    #105719

    Hi,

    I have added the above code in custom.css.

    It worked for main menu bar. but this is being applied to last menu of sub menu bar. I don’t want that this should be applied to sub menus. How can I do that?

    regards,

    teamkp

    #105720

    Hey!

    Try following code instead:

    .main_menu {
    width: 100%;
    }

    #top .main_menu .menu > li:last-child {
    position: absolute;
    right: -30px;
    }

    #top .main_menu .menu > li:last-child a {
    border: none !important
    }

    Best regards,

    Peter

    #105721

    Thanks !!!

    it worked. :)

    regards

    teamkp

    #105722

    Glad we could help :)

    Let us know if you have any other questions or issues.

    Regards,

    Devin

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

The topic ‘add an new Menu’ is closed to new replies.