-
AuthorPosts
-
April 1, 2021 at 9:48 am #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.
April 4, 2021 at 7:00 am #1292173Hi 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,
RikardApril 4, 2021 at 4:51 pm #1292359Hi 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,
MagnusApril 6, 2021 at 8:02 am #1292693Hi 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,
RikardApril 6, 2021 at 9:36 am #1292708Hi Rikard,
I am referring to the orange button “Zur Zahlung ->” which is “sticky” at the bottom of the screen.Best Magnus
April 7, 2021 at 6:11 am #1292983Hi,
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,
RikardApril 7, 2021 at 10:13 am #1293017Hi 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 buttonMany thanks for further help.
Magnus
April 9, 2021 at 4:35 am #1293413Hi,
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,
RikardApril 22, 2021 at 9:46 pm #1296142Hi Rikard,
thank you for your reply. Unfortunately the CSS does not have any effect.
Do you have any further ideas?
Thanks,
MagnusApril 25, 2021 at 7:01 am #1296569Hi 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,
RikardApril 26, 2021 at 12:39 am #1296640Hi Rikard,
oh sorry. My mistake.
Thanks a lot. Your solution is exactly what I wanted to achieve. Amazing!!
April 26, 2021 at 6:33 am #1296662Hi ClimbingSocks,
We’re glad to hear that :)
Thanks for using Enfold and have a great day!Best regards,
Nikko -
AuthorPosts
- The topic ‘Sticky add to cart button and proceed to checkout button on mobile screens’ is closed to new replies.