Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Montezuma Theme (http://forum.bytesforall.com/forumdisplay.php?f=53)
-   -   Deactivating Widgets for mobile users (http://forum.bytesforall.com/showthread.php?t=19288)

ryoung Jan 8, 2013 10:56 AM

Deactivating Widgets for mobile users
 
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?

lmilesw Jan 8, 2013 01:43 PM

Montezuma is a responsive theme. You shouldn't need a plugin for mobile users.

ryoung Jan 8, 2013 03:04 PM

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.

jerryc Jan 8, 2013 05:14 PM

Quote:

Originally Posted by ryoung (Post 94673)
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.

ryoung Jan 9, 2013 06:07 AM

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?

juggledad Jan 9, 2013 06:35 AM

ryoung: yes that IS the way it it is suppose to work.

ryoung Jan 9, 2013 08:02 AM

Thanks, I appreciate the response :)


All times are GMT -6. The time now is 05:18 PM.

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