Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #206236

    rickp
    Participant

    Hi,

    I am using a button on my home page inside of the revolution slider.

    I’m not sure if it is because I am using it inside of the slider, but it is being constrained when I size my screen down, to the point of being almost non-existent on mobile.

    The “x-large” round button shortcode appears to remain responsive and maintain a height of 65px regardless of screen size. Is it possible to replicate that inside of the Revolution slider?

    Thank you

    #206238

    rickp
    Participant
    This reply has been marked as private.
    #206887

    Christopher
    Moderator

    Hi there,

    Please add the following CSS under Customize -> Custom -> CSS :

    @media (max-width:480px){
    a.x-btn.x-btn-lightgrey.x-btn-rounded.x-btn-jumbo.x-btn-block {
    width: 150px !important;
    font-size: 12px !important;
    line-height: 15px !important;
    }
    }

    Hope it helps.

    #294939

    Tristan A
    Participant

    Hi Support,

    I adapted the above code to fit the button on my revolution slider. The objective is the same, i.e. to ensure it is of a larger size in the mobile screen.

    My code is:

    @media (max-width:480px){
    a.x-btn.hero-btn.x-btn-real.x-btn-round.x-btn-small {
    width: 150px !important;
    font-size: 12px !important;
    line-height: 15px !important;
    }
    }

    Unfortunately, it doesn’t work…. What am i missing here?

    Will provide URL and credentials below.

    Thanks!

    #294941

    Tristan A
    Participant
    This reply has been marked as private.
    #294962

    Ying-Fu Li
    Participant

    You can use this code:

    @media (max-width: 480px) {
    .rev_slider_wrapper .x-btn {
        font-size: 1.2rem !important;
        padding: 0.863em 1.1em 0.913em !important;
    }
    }

    Play around with the padding to adjust the width and height of the button.

    #295122

    Nico
    Moderator

    Thank you so much for chimming in Ying-Fu L. We are glad to have you hear in our community.

    Have a great day! 🙂

    #295145

    Tristan A
    Participant

    Thanks! That worked perfectly!

    #295158

    Nico
    Moderator

    Glad to hear that! 🙂