Ad
How To Disable Element On Mobile Devices On Wordpress?
I've got website: https://romeo24.live/ and there I've got a social plugin on the right top corner. On the desktop is ok, but I wanted to hide it on mobile devices. Should I make it with css? Is it possible? Thanks
Ad
Answer
You can use @media CSS at-rule for control style sheet in some screens (like mobile devices). In your site, you can use this CSS code for example:
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
#sfsi_floater {
display: none;
}
}
Ad
source: stackoverflow.com
Related Questions
- → OctoberCMS - How to make collapsible list default to active only on non-mobile
- → How to disable assets combining on development in OctoberCMS
- → October CMS - Radio Button Ajax Click Twice in a Row Causes Content to disappear
- → How to dynamically add class to parent div of focused input field?
- → Expanding search bar not expanding before search
- → Include external javaScript CSS in laravel 5
- → Using css modules how do I define a global class
- → How to add a timer in HTML5 and Javascript?
- → Conditional BG Color on AngularJS
- → Divs aren't aware of screen resizing
- → Setting the height of a textarea inside a table
- → How can I get Greasemonkey to highlight visited image links?
- → How to handle onclick event of a button?
Ad