Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » FAQ - Atahualpa » Menus »

[SOLVED] How to make Pages dropdown menu go UP :)


  #1  
Old Nov 24, 2009, 10:33 AM
Burn
 
32 posts · Nov 2009
I'm trying to figure out how to get the drop down menu goin up instead of down...

I've moved the pages menu to the footer and therefore the submenus are not always visible when dropping down.. how could I make pop up above the main menu buttons?

Cheers
  #2  
Old Nov 25, 2009, 07:47 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
The code that creates the menubar is designed to do 'drop down' menu's, it doesn't have an option to do drop up menu's. This would be a fairly large change. the code is based on the Ruthsarian's rMenu (http://webhost.bridgew.edu/etribou/layouts/) if you'd like to tackle it.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Nov 25, 2009, 01:17 PM
Burn
 
32 posts · Nov 2009
Well reading this juggledad, I went to look into the css.php file..

And I added this in the CSS/insert
Code:
ul.rMenu_footer-hor ul {
bottom: 95%;		
right: auto;
left: auto;		
margin-bottom: -1px;	
}
So I have now a drop-down menu below the header and a drop-up menu at the footer
There are still a feww things to be edited but it works

this can be flagged as solved
I'm a happy man!
  #4  
Old Nov 25, 2009, 01:31 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Feel like sharing how you put the menu in the footer for others?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Nov 26, 2009, 12:17 PM
Burn
 
32 posts · Nov 2009
Sure!

First I followed your instruction via another post
Quote:
Originally Posted by juggledad
edit bfa_footer.php and add the following after line 14 (global $bfa_ata
HTML Code:
	// Page Menu Bar 
	$page_menu_bar = '<div id="menu1"><ul id="rmenu2" class="clearfix rMenu-hor rMenu">' . "\n";
	if ($bfa_ata['home_page_menu_bar'] != '') {
		$page_menu_bar .= '<li class="page_item';
		if (function_exists('is_front_page')) {
			if (is_front_page() OR is_home()) { 
				$page_menu_bar .= ' current_page_item';
			}
		} elseif (is_home()) { 
			$page_menu_bar .= ' current_page_item';	
		}
		$page_menu_bar .= '"><a href="' . get_option('home') . '/" title="' . get_option('blogname') . '">' . 
		$bfa_ata['home_page_menu_bar'] . '</a></li>' . "\n";	
	}	
	if ($bfa_ata['levels_page_menu_bar'] == "") {
		$bfa_ata['levels_page_menu_bar'] = 0; 
	}	
	$page_menu_bar .= bfa_hor_pages($bfa_ata['sorting_page_menu_bar'], $bfa_ata['levels_page_menu_bar'], 
	$bfa_ata['titles_page_menu_bar'], $bfa_ata['exclude_page_menu_bar']);
	$page_menu_bar .= '</ul></div>' . "\n";
	$footer_content .= $page_menu_bar;
// END of Page Menu Bar 
After that each time in this bit of code I saw in the IDs or CLASSes the word "menu" I changed it to "menu_footer"

ANd once this was done, I had to duplicate the CSS INSERTS I had created to style my menu and change each class/id "menu" to "menu_footer" in the newly inserted attributes...

Globally that did the trick for me... After I think it depends on each of us applies inserts to style the menu. I believe the same could be done to the category menu, but I wont need to experiment with this...

Bookmarks

Tags
dropdown, page menu

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I make one custom link in the Pages Menu? kippiper Page & Category Menu Bars 22 Sep 5, 2010 08:20 PM
How to make dropdown submenus fly out from Page Menu Bar ON HOVER? one-from-lv Page & Category Menu Bars 0 Oct 9, 2009 02:21 PM
[SOLVED] How do I make one custom link in the Pages Menu? iPuppet Page & Category Menu Bars 7 Sep 24, 2009 12:22 PM
How to make the Pages display in sidebar, show only the Parent Main Pages Leoni Sidebars & Widgets 2 May 27, 2009 12:13 AM
HOw do I setup the dropdown menu? weightlosscoach Page & Category Menu Bars 7 Mar 26, 2009 07:29 AM


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


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