Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1347960
    Command23
    Participant

    I would like to add a CTA rectangle button to my navbar. I have tried the my-btn-pill code in the custom menu item section and used the some provided code that i seen in a previous thread..

    Under Appearance > Customize > CSS

    .x-navbar .menu-item.my-btn-pill a {
    border: 2px solid #1abc9c;
    border-radius: 20px;
    color: #1abc9c !important;
    height: 40px !important;
    margin: 5px auto;
    padding: 10px 15px !important;
    -webkit-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
    }

    .x-navbar .menu-item.my-btn-pill a:hover {
    background-color: #1abc9c;
    color: #fff !important;
    }

    I was able to get the pill button to show up but I am NOT able to make any changes beyond that point. The only changes I would like to make is change the color of the buttons and ensure it aligns to my navbar menu. NOT a big deal but if possible, I would rather have a rectangle button rather than the pill button.

    Thank you

    #1347961
    Command23
    Participant
    This reply has been marked as private.
    #1348142
    Rahul
    Moderator

    Hi There,

    Thanks for writing in!

    Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

    #1348293
    Command23
    Participant
    This reply has been marked as private.
    #1348691
    Christopher
    Moderator

    Hi there,

    Provided credentials didn’t work, please check.

    Thanks.

    #1348935
    Command23
    Participant
    This reply has been marked as private.
    #1349259
    Rue Nel
    Moderator

    Hello There,

    Thanks for providing the information. To make any of the changes you want for the pill button, please add the following css code in the customizer, Appearance > Customize > Custom > CSS

    .x-navbar .desktop .x-nav>li.my-btn-pill {
        margin-top: 30px;
    }
    
    .x-navbar .desktop .x-nav>li.my-btn-pill a{
        border-color: red;
        color: red !important;
    }

    Feel free to change the colors and add your other styling.

    Please let us know how it goes.

    #1349325
    Command23
    Participant

    That worked thank you but only on the home page. I am not able to make any changes to the button on any other page.

    How would I change the following:

    Change the pill button to a square one.
    Change the color and hover color when in mobile view.

    Currently, the code you provided only works when in desktop mode.

    Here is my most recent code:

    body.x-navbar .desktop .x-nav>li.my-btn-pill {
    margin-top: 20px;
    }

    body .x-navbar .desktop .x-nav>li.my-btn-pill a{
    border-color: #fff;
    color: #fff !important;
    }
    body .x-navbar .desktop .x-nav>li.my-btn-pill a:hover{
    border-color: #fff;
    color: #fff !important;
    background: #265F99;

    Thank you.

    #1349422
    Rue Nel
    Moderator

    Hello There,

    Thanks for updating in! You may have inserted the wrong code. Please check this out:

    Please make sure that there are no conflicting codes. I can see that you have added the code in Cornerstone’s Custom CSS and there is also in the customizer’s custom css. If you want to apply the code in all of your pages, please put the code in the customizer and not just in Cornerstone’s custom css because this section will only applies to that page.

    Hope this helps.

    #1349826
    Command23
    Participant

    Thank you for your assistance. I would still like to change the button style from pill to square.

    How do I go about doing that?

    #1350155
    Rue Nel
    Moderator

    Hello There,

    Thanks for writing in! To change the button style from pill to a square, please update your code and make use this code instead:

    body .x-navbar .menu-item.my-btn-pill a {
        border: 2px solid #fff;
        border-radius: 20px;
        background-color: #3295B8;
        color: #fff !important;
        height: 40px !important;
        margin: 20px auto;
        padding: 10px 15px !important;
        -webkit-transition: all 0.3s ease 0s;
        transition: all 0.3s ease 0s;
    
        border-radius: 0 !important;
    }

    Hope this helps. Kindly let us know.

    #1350197
    Command23
    Participant

    That worked.

    Thank you!

    #1350272
    Paul R
    Moderator

    You’re welcome! 🙂

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