|
#1
Jul 6, 2009, 09:40 PM
|
|
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
Jul 7, 2009, 06:18 AM
|
|
|
|
23,765 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
Jul 7, 2009, 07:05 AM
|
|
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
Jul 7, 2009, 11:32 AM
|
|
|
|
23,765 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
Jul 11, 2009, 05:29 PM
|
|
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
Jul 11, 2009, 05:54 PM
|
|
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
Aug 24, 2012, 12:59 AM
|
|
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
Aug 24, 2012, 04:07 AM
|
|
|
|
23,765 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
Aug 24, 2012, 04:52 AM
|
|
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
Aug 24, 2012, 05:23 AM
|
|
|
|
23,765 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
|
|