Viewing 15 posts - 1 through 15 (of 18 total)
  • Posted in: Dante
  • #50619
    Pothe
    Member
    Post count: 336

    Hi
    I want the last menu link to appear as a button. Is there a way to apply the button class?
    Thanks

    #50972
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please share your website URL so i can suggest you easily .
    Cheers!
    With Best Regards
    Swiftideas Themes

    #51150
    Pothe
    Member
    Post count: 336

    Thanks
    http://www.forestnation.com

    “My FN” I want to display as a button.

    #51151
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I am very sorry that it is not possible . I tried but it need a lot of customization and menu navigation is also breaking .

    With Best Regards
    Swiftideas Themes

    #51493
    Pothe
    Member
    Post count: 336

    Ok, thanks for trying.
    I’ll make do with the icons for now.
    Thanks again

    #51701
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi @Pothe

    You can try using this css:

    nav#main-navigation .menu li:last-child a {
      border: 2px solid #333;
      border-radius: 2px;
      padding: 10px 17px 12px !important;
      -webkit-transition: all ease-out 0.3s;
        -moz-transition: all ease-out 0.3s;
        -o-transition: all ease-out 0.3s;
        transition: all ease-out 0.3s;
    }
    nav .menu li:last-child a:hover {
      background:#333;
      color: #fff !important;
    }
    nav .menu li:last-child a > span.nav-line {
      opacity:0;
    }

    You will have to edit some of it, for e..g the colors and the padding, as this css is pulled straight from my website.

    If you add it to your css and it looks weird, let me know and I will clean it up for you.

    – Kyle

    #51733
    Pothe
    Member
    Post count: 336

    Thanks, that’s awesome!!

    #51737
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Great! Glad I could help

    – Kyle

    #51837
    Pothe
    Member
    Post count: 336

    Hi Kyle,
    It works, but also affects all the sub menu items.
    Is there a tweak to prevent this?

    #51862
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Give this a try instead:

    nav#main-navigation .menu > li:last-child a {
      border: 2px solid #333;
      border-radius: 2px;
      padding: 10px 17px 12px !important;
      -webkit-transition: all ease-out 0.3s;
        -moz-transition: all ease-out 0.3s;
        -o-transition: all ease-out 0.3s;
        transition: all ease-out 0.3s;
    }
    nav .menu > li:last-child a:hover {
      background:#333;
      color: #fff !important;
    }
    nav .menu > li:last-child a > span.nav-line {
      opacity:0;
    }

    – Ed

    #51912
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Thanks Ed!

    #51944
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Great work . Thanks Ed!

    #52149
    Pothe
    Member
    Post count: 336

    Perfect, Thanks a lot! ๐Ÿ™‚

    #52154
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    No problem

    #52224
    Pothe
    Member
    Post count: 336

    one last thing ๐Ÿ™‚

    I am using a blue button as follows:

    
    nav#main-navigation .menu > li:last-child a {
      background-color: #1dc6df;
      border-radius: 2px;
      padding: 10px 17px 12px !important;
      -webkit-transition: all ease-out 0.3s;
        -moz-transition: all ease-out 0.3s;
        -o-transition: all ease-out 0.3s;
        transition: all ease-out 0.3s;
    }
    nav .menu > li:last-child a:hover {
      background:#333;
      color: #fff !important;
    }
    nav .menu > li:last-child a > span.nav-line {
      opacity:0;
    }
    

    But when the button is selected the Nav Link current is the same color as the button.
    How do I force the current nav link to stay white, only for the last link?

Viewing 15 posts - 1 through 15 (of 18 total)

You must be logged in to reply to this topic.