Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Montezuma Theme »

Deactivating Widgets for mobile users

Old Jan 8, 2013, 11:56 AM
32 posts · Nov 2012
Is there any functionality in Montezuma to deactivate widgets for mobile users?

I know I can use a plugin like WPTouch, but then I lose the theme.

Does anyone have any advice for accomplishing something like this?
Old Jan 8, 2013, 02:43 PM
lmilesw's Avatar
10,174 posts · Jul 2009
Central New York State USA
Montezuma is a responsive theme. You shouldn't need a plugin for mobile users.
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
Old Jan 8, 2013, 04:04 PM
32 posts · Nov 2012
Well, what I'm trying to accomplish is to have my left sidebar widget be 'sticky' and float down the screen as the user scrolls.

I can make this work via plugin, but on mobile browsers it 'floats' it down on top of the text as the user scrolls down. Which is not only ugly and trashy, but makes it un-readable as well.

I'd be open to any suggestions. My initial thought was to find a way to make the widget just not appear if a mobile browser user-agent was detected.
Old Jan 8, 2013, 06:14 PM
367 posts · Oct 2012
Originally Posted by ryoung
I'd be open to any suggestions. My initial thought was to find a way to make the widget just not appear if a mobile browser user-agent was detected.
I like to write pages that display well on anything, but I understand your problem, and here's a quick fix that might work. Make the whole div display:hidden. Then, make a javascript that, onload, queries the browser window size and the agent, and if it's not a mobile and a big enough window, changes that to display:block.

The reverse solution would be to make it display as the default, and have js make it hidden if it detects a mobile browser or small window.

I hope this helps. I expect there are solutions that are more elegant and do more, but this might get you started easily.
Old Jan 9, 2013, 07:07 AM
32 posts · Nov 2012
Now just to make sure I'm not crazy....

When I view in my mobile device I get the left side bar on "top" of the main content window, and then the right sidebar 'underneath' that content. It doesn't appear as you would typically see on a fullsize screen.

Is that how it is supposed to work? Or should the responsive theme be scaling everything down to display it as intended?
Old Jan 9, 2013, 07:35 AM
juggledad's Avatar
23,682 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
ryoung: yes that IS the way it it is suppose to work.
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
Old Jan 9, 2013, 09:02 AM
32 posts · Nov 2012
Thanks, I appreciate the response


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mobile Specific CSS theadventurebite Atahualpa 3 Wordpress theme 1 Oct 5, 2012 09:04 AM
Mobile Sidebar problem Context Canada Center area post/pages 1 Mar 1, 2012 03:46 PM
Background keeps resizing on mobile samueljustice00 Header configuration & styling 3 Jun 17, 2011 08:27 PM
Mobile view plugin joestyer Plugins & Atahualpa 2 Feb 16, 2009 08:16 AM

All times are GMT -6. The time now is 03:59 AM.

Powered by vBulletin® Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.