Hi,
you sent me a custom css for my website before. but when I apply this to my other website it doesn’t work. can you help me? What I wanted to do was show only the buy now button on mobile.
Regards,
This topic has 7 replies, 3 voices, and was last updated 3 days, 1 hours ago ago by Recep
Hi,
you sent me a custom css for my website before. but when I apply this to my other website it doesn’t work. can you help me? What I wanted to do was show only the buy now button on mobile.
Regards,
Hello,
@media only screen and (max-width:480px){
.single-product .product-information .single_add_to_cart_button:not(.et-single-buy-now), .cart .et-or-wrapper {
display: none;
}
}
Do you mean this code?
Regards
Hi,
I have this code in style css. https://snipboard.io/ixOrGT.jpg
@media only screen and (max-width: 767px) {
.etheme-sticky-cart .add_to_cart_button, .etheme-sticky-cart .et-or-wrapper {
display: none;
}
}
I have this code in function.php. https://snipboard.io/ayD8T2.jpg
add_filter(‘etheme_sticky_add_to_cart_buy_now_hide_mobile’, ‘__return_false’);
and this is the result. https://snipboard.io/PNk6KX.jpg
but this is what i expect. https://snipboard.io/m6RpwD.jpg
just the “buy now” button.
Regards.
Hello, @Recep,
I have solved your issue, I have added the below-given code to your site Theme Settings >> Theme Custom CSS >> Mobile and Mobile Landscape.
.etheme-sticky-cart button.add_to_cart_button {
display: none !important;
}
.etheme-sticky-cart p.price {
display: none !important;
}
Here is the resulting screenshot: https://postimg.cc/56Wvznmy
Regards 8Themes Team.
Hi,
thank you so much.
Hello, @Recep,
Sounds Great! that your issue has been solved.
Thanks for contacting us.
Have a great day ?
Topic Closed!
Regards 8Themes Team.
Thanks for the support! My topic “only show buy now button on mobile. css error” has been successfully resolved.
The issue related to '‘only show buy now button on mobile. css error’' has been successfully resolved, and the topic is now closed for further responses