How Do I Stop a Widget From Displaying on Mobile Site?

The most obvious answers is to use WordPress plugin. You can check this plugin of mine : Widget Options for WordPress which is available for free on the repository : and easily hide widgets on mobile and other devices. You can check the screenshot below on how it's integrated.Alternatively, you can use custom CSS. Just make sure you know the Widget ID and add something like this on your style.css

On my main site I have used the search widget in the sidebar.

However, the mobile theme I am using (minileven) already has a search box built into its menu bar. This results in a second search box in the sidebar (which appears after the post content) due to the widget.

How do I stop the search widget appearing on the mobile site?

This is the code for sidebar.php from the mobile theme:

?>

Alternatively, would it be better not to use the search sidebar widget and have the search box hardcoded into the main site theme? Is it usual for WordPress themes to do that? (I am planning on publicly releasing the WordPress theme I have made).

·OTHER ANSWER:

On my main site I have used the search widget in the sidebar.

However, the mobile theme I am using (minileven) already has a search box built into its menu bar. This results in a second search box in the sidebar (which appears after the post content) due to the widget.

How do I stop the search widget appearing on the mobile site?

This is the code for sidebar.php from the mobile theme:

?>

Alternatively, would it be better not to use the search sidebar widget and have the search box hardcoded into the main site theme? Is it usual for WordPress themes to do that? (I am planning on publicly releasing the WordPress theme I have made).

s&s activewear headquarters related articles
What Are Araya Rims Made of? Should I Replace Them?
Droid Vs Blackberry Vs Iphone? HELP!?
Why Do Software Developers Tend to Leave a Company After 2 Or so Years?
Business Activities
Xiaomi Family Launched Intelligent Clothes Dryer

Copyright © 2020 Concises YuGa Sports | Sitemap