This topic has 9 replies, 3 voices, and was last updated 5 years, 10 months ago ago by Olga Barlow
Hello!!
I would like to show the products widget in single products sidebar but not in mobile…what can I do?
TKS!!
Hello,
You can use custom css code to hide it on mobile.
Please provide URL of your single product page and I will help with the code.
Regards
In this moment, we have this in Custom css for mobile:
.single-product-sidebar.sidebar-right, .tax-product_cat .sidebar {
display: none;
}
But I erased products widget because have problems in mobile
TKS!!!
Please add content in the sidebar. Do you want to disable only 1 widget from the sidebar on mobile?
Also, temporarily disable the cache plugin on your site, because I do not see mentioned custom css code on your site via the console.
Regards
Done!!!
Please provide temporary wp-admin access.
Regards
In private…tks!
Hello,
Use the following code in general custom CSS
@media only screen and (max-width:960px) {
.single-product .single-product-sidebar .widget_products {
display: none;
}
}
Regards
You must be logged in to reply to this topic.Log in/Sign up