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 » Atahualpa 3 Wordpress theme » Page & Category Menu Bars »

How to move page menu bar to footer?


  #1  
Old Jul 6, 2009, 10:40 PM
erglebop
 
9 posts · Jul 2009
How to move page menu bar to footer?

It's a great theme, I'm enjoying getting to know it. One question: I would like to move the page menu bar from the header to the footer. I tried putting %pages% or %pages in the footer content, but all I got was % pages in the footer? Is that possible? How do you do that?
Thanks a bunch
  #2  
Old Jul 7, 2009, 07:18 AM
juggledad's Avatar
juggledad
 
23,737 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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 
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Jul 7, 2009, 08:05 AM
bushtool's Avatar
bushtool
 
93 posts · May 2009
white color text gone

your suggestion worked fine on my site except the letters in the menu bar are no longer white as they are in the top menu bar but rather red.

www.d4v.org
  #4  
Old Jul 7, 2009, 12:32 PM
juggledad's Avatar
juggledad
 
23,737 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
bushtool
you have made several changes to the footer style and that is causing the difference.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Jul 11, 2009, 06:29 PM
erglebop
 
9 posts · Jul 2009
Juggledad,

Thanks for the code. It works! First time I missed the bottom line and screwed up my whole site. Had to delete the theme and reinstall it to get it to open up. But, I figured it out!
Are the options for page menu supposed to control the page menu in the footer? The "home link in menu bar" option works, but the border option and the colors, don't. Also the text in the footer is centered, except for the page menu, it's at the left.

Thanks again for your help. This forum is awesome.

Jim Morris
  #6  
Old Jul 11, 2009, 06:54 PM
bushtool's Avatar
bushtool
 
93 posts · May 2009
footer colors

The menu bar takes on the colors of the footer styling. If anyone figures out how to override those style settings just for the menu bar, please post that here.

Thanks
  #7  
Old Aug 24, 2012, 01:59 AM
tijsco
 
7 posts · Aug 2012
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 
I'm working on a site which has one page with a lot of content. I want to repeat the menu somewhere on this page. Is it possible to add this code somewhere so I can add the menu on a page?
  #8  
Old Aug 24, 2012, 05:07 AM
juggledad's Avatar
juggledad
 
23,737 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Quote:
I'm working on a site which has one page with a lot of content. I want to repeat the menu somewhere on this page. Is it possible to add this code somewhere so I can add the menu on a page?
if you have so much content on one page that you need to have multiple copies of teh menu, you should think about a redesign. Who wants to scroll thru tons of static data? Not me, least I'd never go back to the site

you could always use the 'exec php' plugin and then add a 'new widget area' to your page and put the 'custom menu' widget into the widget area.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #9  
Old Aug 24, 2012, 05:52 AM
tijsco
 
7 posts · Aug 2012
Thanks for the quick reply.

Sadly it's not possible to split the page, and the data is not just static text.

I already thought about the suggestion with the custom menu, but the menu has to look exactly the same as the menu in the header.
  #10  
Old Aug 24, 2012, 06:23 AM
juggledad's Avatar
juggledad
 
23,737 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
so use the same custom menu in the header
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Tags
footer, page menu bar

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Atahualpa Page Menu Bar -&gt; BFA Page Menu Bar? bhannemann Page & Category Menu Bars 16 Feb 21, 2011 05:49 AM
[SOLVED] Safari not displaying page menu bar and post footer correctly chinnerz Atahualpa 3 Wordpress theme 4 May 31, 2009 10:52 PM
Can I move the Page Menu *under* Header? krystyna Page & Category Menu Bars 1 Apr 30, 2009 12:25 PM
How do I move drop down menu bar for pages under logo area and header image? barfarf Header configuration & styling 1 Apr 22, 2009 12:49 PM
Move footer credits to sidebar carnival Header configuration & styling 0 Mar 28, 2009 05:36 PM


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


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