Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1228206
    mahmoud237
    Participant

    How can I make a button on the mobile navbar instead of the item on the attached photo ?

    I use ethos stack .

    #1228208
    mahmoud237
    Participant
    This reply has been marked as private.
    #1228236
    Paul R
    Moderator

    Hi,

    You can add this under Custom > Edit Global CSS in the Customizer.

    .x-navbar .mobile .x-nav li.accountbutton>a>span { 
       background-color: #5CB85C;
        border-radius: 4px;
        padding: 10px 26px !important;
        color: #ffffff;
    }
    

    Hope that helps

    #1228294
    mahmoud237
    Participant

    Great .. it worked … But How can I remove the underneath background color under the button ?

    Check the attached photo to know what I mean

    #1228356
    Thai
    Moderator

    Hi There,

    Please change the previous CSS to this:

    .x-navbar .mobile .x-nav li.accountbutton>a { 
       background-color: #5CB85C;
        border-radius: 4px;
        padding: 10px 26px !important;
        color: #ffffff;
    }

    Hope it helps 🙂

    #1228731
    mahmoud237
    Participant

    Great … Can I make its width smaller and float the button and the text on it to center ?

    #1228922
    Jade
    Moderator

    Hi there,

    I tried to login through the admin but whenever I try to access the homepage, I get asked for a password.

    Kindly provide us with the page password so that we could check it further.

    #1228923
    mahmoud237
    Participant
    This reply has been marked as private.
    #1229373
    Rupok
    Member

    Hi there,

    Let’s update the code to below :

    .x-navbar .mobile .x-nav li.accountbutton > a {
      background-color: #5cb85c;
      border-radius: 7px;
      color: #ffffff;
      margin: 0 auto;
      text-align: center;
      width: 200px;
    }

    You can use the native functionality of WordPress to make a page password protected from “Publish” option. There is no need of using an extra plugin for this.

    Thanks!

    #1230550
    mahmoud237
    Participant

    Thank you very much … Worked Perfectly

    #1230884
    Prasant Rai
    Moderator

    You are most welcome. 🙂

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