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 »

Turning nav_menu-2 into dropdown for mobile devices


  #1  
Old Jun 7, 2013, 04:13 AM
Fux
 
142 posts · Apr 2009
I am using nav_menu-2 in widgetarea-one as my main menu - I do not use the menu bar.

While the menu bar gets conveniently turned into a dropdown box above the content, the nav_menu-2 in widgetarea-one will just be moved above the content, but not turned into a dropdown box.

Is there a way to apply the mighty dropbox-folding mechanism to the nav_menu-2? I was unable to find the code for that at all, but I am not a code ninja, more like a brawler...
  #2  
Old Jun 7, 2013, 05:06 AM
juggledad's Avatar
juggledad
 
23,597 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
The 'Custom Menu' widget is WordPress code and is not part of the theme. Could it be made to act like the main menu? Probably...with a lot of time and effort. Are you interested in funding it?
  #3  
Old Jun 7, 2013, 06:17 AM
jerryc
 
367 posts · Oct 2012
Florida
A google for Wordpress dropdown menu plugin returns several. If you find a good one that's compatible with MZ, please post it here.
  #4  
Old Jun 10, 2013, 04:15 AM
Fux
 
142 posts · Apr 2009
Quote:
Originally Posted by juggledad
Are you interested in funding it?
I considered that. But I realized that putting the menu in the sidebar brings several more problems with it that would also have to be solved (for example: where do I put all the other widgets (in that same sidebar) in mobile/small-screen-mode? Surely not on top of the main content...). So I'm afraid I'll have to switch to the standard menu bar anyway.

But thank you.

Web conception has become so arduous...
  #5  
Old Jun 10, 2013, 06:51 AM
jerryc
 
367 posts · Oct 2012
Florida
Quote:
Originally Posted by Fux
I realized that putting the menu in the sidebar brings several more problems ...
With MZ, think outside the sides when you hear the term sidebars. You can put sidebars in you headers, footers, and even your main content area of your templates.
  #6  
Old Jun 10, 2013, 07:55 AM
Fux
 
142 posts · Apr 2009
Quote:
Originally Posted by jerryc
With MZ, think outside the sides when you hear the term sidebars. You can put sidebars in you headers, footers, and even your main content area of your templates.
That's not at all the point. The point is to decide which element I want to appear where. Sidebars (on the side) are so convenient because their content is always right there next to the main content. That does not happen if you put them above or below the main content - they quickly get scrolled of the screen.

Last edited by Fux; Jun 10, 2013 at 07:55 AM. Reason: fixed a typo
  #7  
Old Jun 10, 2013, 11:12 AM
juggledad's Avatar
juggledad
 
23,597 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Actually the Montezuma 'dynamic_sidebar' should have been called 'dynamic_widget_area' (in my opinion). A sidebar is just a widget area.

Look at 'index.php' it has a div (the row) with two columns. The first is 8 columns and contains the content, and the other is 4 columns and is a 'dynamic_sidebar'.

You could add
HTML Code:
<div id="above_main" class="row">
	
	<div id="header_widgetarea" class="col12">
		<?php dynamic_sidebar( 'header widget area' ); ?>
	</div>

</div>
just after the 'get_header()' and have a widget area that spans the width of your content.

You could edit postformat.php and put
HTML Code:
		<?php dynamic_sidebar( 'post widget area' ); ?>
at the very begining and now you would have a widget area that shows up before each post (on a multi post page.)

so there is a lot you can do with the _dynamic_sidebae' (or as it should be called 'dynamic_widgetarea')
  #8  
Old Jun 10, 2013, 11:58 AM
lmilesw's Avatar
lmilesw
 
10,174 posts · Jul 2009
Central New York State USA
To keep the menu in sight you could also use one of the "sticky menu" plugins available. One of them is called the WP Sticky Menu Plugin and one is called UberMenu Sticky Menu extension which works along with UberMenu. Both of these are on CodeCanyon. UberMenu can be set to be responsive.

There may be some free ones available on wordpress.org but I have not searched extensively as the cost of the premium one is pretty reasonable.
__________________
~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.
  #9  
Old Jun 10, 2013, 01:33 PM
jerryc
 
367 posts · Oct 2012
Florida
Quote:
Originally Posted by juggledad
Actually the Montezuma 'dynamic_sidebar' should have been called 'dynamic_widget_area' (in my opinion). A sidebar is just a widget area.
Great idea Juggledad. Maybe on some newer version, that can be included in the code, with the old sidebar name still usable for legacy sites.

Quote:
... so there is a lot you can do with the _dynamic_sidebar' (or as it should be called 'dynamic_widgetarea')
Not only that, I don't think there's any limit to how many you can have, is there? If you want one sidebar with x number widgets in it, you can have that, or you can have x number of sidebars with various numbers of widgets in them.

MZ is amazingly versatile in this regard.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to keep pictures from turning blank z0mghii Montezuma Theme 1 Oct 8, 2012 06:29 AM
Turning off excerps dilago Excerpts, Read more, Pagination 1 Oct 22, 2010 04:57 PM
Turning off Table Styling karlos Header configuration & styling 1 Nov 28, 2009 06:01 AM
Turning off Atahualpa Global Tables kdawes01 Atahualpa 3 Wordpress theme 0 Sep 12, 2009 05:07 PM


All times are GMT -6. The time now is 09:38 PM.


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