Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

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

Deactivating Widgets for mobile users


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Jan 8, 2013, 10:56 AM
ryoung
 
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?
  #2  
Old Jan 8, 2013, 01:43 PM
lmilesw's Avatar
lmilesw
 
10,083 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.
  #3  
Old Jan 8, 2013, 03:04 PM
ryoung
 
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.
  #4  
Old Jan 8, 2013, 05:14 PM
jerryc
 
367 posts · Oct 2012
Florida
Quote:
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.
  #5  
Old Jan 9, 2013, 06:07 AM
ryoung
 
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?
  #6  
Old Jan 9, 2013, 06:35 AM
juggledad's Avatar
juggledad
 
22,176 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
ryoung: yes that IS the way it it is suppose to work.
__________________
Give a person a solution, you fix one issue, teach a person how to solve their problem you enable them forever.
Juggledad | Forum Moderator/Support
  #7  
Old Jan 9, 2013, 08:02 AM
ryoung
 
32 posts · Nov 2012
Thanks, I appreciate the response

Bookmarks

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 08:04 AM
Mobile Sidebar problem Context Canada Center area post/pages 1 Mar 1, 2012 02:46 PM
Background keeps resizing on mobile samueljustice00 Header configuration & styling 3 Jun 17, 2011 07:27 PM
Mobile view plugin joestyer Plugins & Atahualpa 2 Feb 16, 2009 07:16 AM


All times are GMT -6. The time now is 04:20 AM.


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