Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1291729

    Hi,
    on the following pages I would like to make the orange “In den Warenkorb” button and “Weiter zur Kasse” button sticky on mobile screens:

    How can I achieve that?

    Thank you for further help.
    Magnus

    • This topic was modified 3 years, 8 months ago by ClimbingSocks.
    #1292173

    Hi Magnus,

    I’m not sure I understand what you mean by sticky, could you try to explain a bit further where you want to place it please?

    Best regards,
    Rikard

    #1292359

    Hi Rikard,

    thank you for your answer and sorry for being unspecific here. Please use a smartphone, go to our website https://climbingsocks.com, select a product and proceed to the checkout. On the checkout page you will see to orange “sticky” button. We would like to have the same behaviour for our “add to cart” button on https://climbingsocks.com/produkt/klettersocken-von-climbingsocks/
    and the “Weiter zur Kasse” button on https://climbingsocks.com/cart/

    I hope this information helps. Please don’t hesitate, if you need further information or clarification.

    Best regards,
    Magnus

    #1292693

    Hi Magnus,

    I had a look at the checkout page on mobile, but I can’t see any sticky buttons there. I can see two buttons reading Amazon Pay and PayPal, are those the ones you are referring to? If not, then please post a screenshot of what you are referring to.

    Best regards,
    Rikard

    #1292708

    Hi Rikard,
    I am referring to the orange button “Zur Zahlung ->” which is “sticky” at the bottom of the screen.

    Best Magnus

    #1292983

    Hi,

    Thanks for the clarification. I think I missed it last time since I had the browser inspector up, and that was blocking it. Please try the following in Quick CSS under Enfold->General Styling:

    @media only screen and (max-width: 767px) {
    .postid-5000 button.single_add_to_cart_button {
        position: fixed;
        bottom: 0;
        left: 0;
    }
    }

    Best regards,
    Rikard

    #1293017

    Hi Rikard,
    thanks for your answer. We are heading into the right direction.

    Unfortunately there are two design issues highlighted with black color here: https://imgur.com/a/mWZT7y7
    1. The distance between orange button and the bottom of the page should be 0.
    2. The “Beschreibung” tab should float behind the button

    Many thanks for further help.

    Magnus

    #1293413

    Hi,

    Please try this CSS instead:

    @media only screen and (max-width: 767px) {
    .postid-5000 button.single_add_to_cart_button {
        position: fixed;
        bottom: -21px;
        left: 0;
    }
    ul.wc-tabs {
        z-index: 0;
    }
    }

    Best regards,
    Rikard

    #1296142

    Hi Rikard,

    thank you for your reply. Unfortunately the CSS does not have any effect.

    Do you have any further ideas?

    Thanks,
    Magnus

    #1296569

    Hi Magnus,

    If you are going to comment your CSS, then make sure that you close it properly:

    /*sticky orange button on single product page

    If you don’t close the comment, then everything below that will be commented out. I removed that for you, and moved the CSS block to the top of the Quick CSS box, and it’s applying to your site.

    Best regards,
    Rikard

    #1296640

    Hi Rikard,

    oh sorry. My mistake.

    Thanks a lot. Your solution is exactly what I wanted to achieve. Amazing!!

    #1296662

    Hi ClimbingSocks,

    We’re glad to hear that :)
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Sticky add to cart button and proceed to checkout button on mobile screens’ is closed to new replies.