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, 03:13 AM
Fux
 
142 posts · Apr 2009
Turning nav_menu-2 into dropdown for mobile devices

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, 04:06 AM
juggledad's Avatar
juggledad
 
23,743 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 10, 2013, 03: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...
  #4  
Old Jun 10, 2013, 05: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.
  #5  
Old Jun 10, 2013, 06: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 06:55 AM. Reason: fixed a typo
  #6  
Old Jun 10, 2013, 10:12 AM
juggledad's Avatar
juggledad
 
23,743 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')
  #7  
Old Jun 7, 2013, 05: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.

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 05:29 AM
Turning off excerps dilago Excerpts, Read more, Pagination 1 Oct 22, 2010 03:57 PM
Turning off Table Styling karlos Header configuration & styling 1 Nov 28, 2009 05:01 AM
Turning off Atahualpa Global Tables kdawes01 Atahualpa 3 Wordpress theme 0 Sep 12, 2009 04:07 PM


All times are GMT -6. The time now is 05:24 AM.


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