Hi,
with the help of this thread I have realized a sticky orange add to cart button on our German single product page on mobile screens.
Now, I would like to achieve the same with our English single product page. How can I achieve this?
I tried
@media only screen and (max-width: 767px) {
.postid-6555 button.single_add_to_cart_button {
position: fixed;
bottom: -21px;
left: 0;
}
ul.wc-tabs {
z-index: 0 !important;
}
}
But it did not work.
Many thanks for further help.
Magnus
Hey ClimbingSocks,
Your code above works correctly when I inject it via the browser so it should work on your site. Perhaps you have an error in your custom stylesheet such as a missing bracket.
Please try the code in the WordPress ▸ Customize ▸ Additional CSS field to see if it works then, if not then please include an admin login in the Private Content area so we can check.
After applying the css, please clear your browser cache and check.
Best regards,
Mike
Hi Mike,
thanks for your answer.
What exactly do you mean with WordPress ▸ Customize ▸ Additional CSS?
Do you mean Theme Options -> General Styling -> Quick CSS instead?
I have added the code there for the english single product page:
https://climbingsocks.com/wp-admin/admin.php?page=avia&lang=en&admin_bar=1
But nor result.
See private content for login credentials.
Many thanks for further help.
Best regards,
Magnus
This problem is solved. I forgot to close my comment in the CSS.
`