Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #880306
    zr1007
    Participant

    I’m currently revamping our website using x theme, I would like to have our buttons side by side on mobile. See attachment, the image to the right is the old site. On the Left is the new X theme, but as you can see it doesn’t look right. thanks

    #881226
    Lely
    Moderator

    Hi There,

    Thanks for the screenshot! To assist you with this issue, we’ll first need you to provide us with your URL where the button is. 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.

    #882828
    zr1007
    Participant
    This reply has been marked as private.
    #883641
    Lely
    Moderator

    Hi There,

    Thank you for the link. We can make two link on a row and not all four. There’s not enough space to display all four buttons in one row. On the block grid element class field, please add custom-block-grid. Then add the following CSS on Settings Tab > Custom CSS:

    @media (max-width: 480px){
    .x-block-grid.four-up.custom-block-grid>li {
        width: 47.5%;
    }
    .x-block-grid.four-up>li:nth-child(2) {
        margin-top: 0;
    }
    }

    Hope this helps.

    #883753
    zr1007
    Participant
    This reply has been marked as private.
    #883872
    zr1007
    Participant
    This reply has been marked as private.
    #884192
    Zeshan
    Member

    Hi there,

    Thanks for writing back!

    if you want to show three buttons in a line, add following CSS under Custom > CSS in the Customizer:

    @media (max-width: 480px){
    .x-block-grid.four-up.custom-block-grid>li {
        width: 33%;
    }
    .x-block-grid.four-up>li:nth-child(2n+1) {
        clear: none;
    }
    .x-block-grid.four-up>li:nth-child(3) {
        margin-top: 0;
    }
    }
    

    Thank you!

    #884470
    zr1007
    Participant
    This reply has been marked as private.
    #885288
    Christopher
    Moderator

    Hi there,

    Please update previous code to :

    @media (max-width: 480px){
    .x-block-grid.three-up>li:nth-child(2), .x-block-grid.three-up>li:nth-child(3) {
        margin-top: 0;
    }
    .x-block-grid.three-up>li:nth-child(2n+1) {
        clear: none;
    }
    .x-block-grid.three-up.custom-block-grid>li {
        width: 33%;
    }
    }

    Hope it helps.

    #885289
    zr1007
    Participant

    perfect! it worked! thank you very much!!!

    #885945
    Thai
    Moderator

    Glad it worked 🙂

    If you need anything else please let us know.

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