Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1241448
    jrslyrics
    Participant

    Can’t figure out how to add a button to the header. I have searched and tried a bunch of css but nothing has worked so far.

    #1241855
    Friech
    Moderator

    Hi There,

    Thanks for writing in! Are you referring to the Topbar? If so, add this on your topbar content.

    <a class="x-btn x-btn-flat x-btn-rounded x-btn-regular" href="#example">Round Button</a>

    If this does not work, please clarify where in the header you want to position this button.

    Cheers!

    #1242436
    jrslyrics
    Participant

    I have the topbar disabled for this implementation. I was able to add a button like appearance to the navbar menu by using this code that I found by searching the forum:
    `.x-navbar .x-nav > li:last-child a {
    border: 2px solid #ccc;
    border-radius: 2px;
    box-shadow: none !important;
    margin-left: 1px;
    margin-top: 26px;
    max-height: 34px;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 8px;
    }`

    Since I want the menu items Left aligned to the logo, How do I get the last child to be right aligned to the header container or add seperate button altogether.

    #1242519
    Rupok
    Member

    Hi there,

    Let’s provide your URL so that we can try to tailor some code for you. If it’s not possible, we’ll suggest you another approach.

    Cheers!

    #1242673
    jrslyrics
    Participant
    This reply has been marked as private.
    #1242870
    Nabeel A
    Moderator

    Hi again,

    Please add the following code in your Customizer via Appearance > Customize > Custom > Edit Global CSS:

    .x-nav-wrap.desktop {
        width: 75% !important;
    }
    .masthead-inline .desktop .x-nav {
        width: 100% !important;
    }
    li#menu-item-37 {
        float: right !important;
    }

    Let us know how this goes!

    #1244043
    jrslyrics
    Participant

    Worked perfectly! Thanks

    #1244164
    Joao
    Moderator

    Glad to hear it,

    Joao

  • <script> jQuery(function($){ $("#no-reply-1241448 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>