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 » Atahualpa 3 Wordpress theme »

Category Menu in Footer

Old Oct 4, 2010, 09:34 AM
7 posts · Oct 2010

I would like to place the Category Menu at the bottom of my page, either beneath the content or at the top of the the footer. I admittedly am not well versed in php and css, so I have just been attempting to copy and paste the existing code where I want it, but that has not been successful. Here is what I have tried so far:

In bfa_header_config.php I copied the following code:

// Category Menu Bar
if ( strpos($header_items,'%cats') !== FALSE OR strpos($header_items,'%cat-center') !== FALSE
OR strpos($header_items,'%cat-right') !== FALSE ) {

// Since 3.5.2: New WP 3 menu system:
if (function_exists('wp_nav_menu') AND has_nav_menu('menu2')) {
if (strpos($header_items,'%cats') !== FALSE ) $alignment = "left";
elseif (strpos($header_items,'%cat-center') !== FALSE ) $alignment = "center";
else $alignment = "right";
$cat_menu_bar = bfa_new_wp3_menus("menu2", $alignment );

// Old custom Atahualpa menu system:
} else {


echo '<div id="menu2">';

if ( strpos($header_items,"%cat-right") !== FALSE ) {
echo '<ul id="rmenu" class="dropdown clearfix rMenu-hor rMenu-hRight rMenu">' . "\n";
} elseif ( strpos($header_items,"%cat-center") !== FALSE ) {
echo '<table cellpadding="0" cellspacing="0" style="margin: 0 auto"><tr><td align="center">
<ul id="rmenu" class="clearfix rMenu-hor rMenu">' . "\n";
} else {
echo '<ul id="rmenu" class="clearfix rMenu-hor rMenu">' . "\n";

// Home Link?
if ( $bfa_ata['home_cat_menu_bar'] != '' ) {
echo '<li class="cat-item';
if ( function_exists('is_front_page') ) {
if ( is_front_page() OR is_home() ) {
echo ' current-cat';
} elseif ( is_home() ) {
echo ' current-cat';
echo '"><a href="'; bloginfo('url'); echo '/" title="'; bloginfo('name'); echo '">' .
$bfa_ata['home_cat_menu_bar'] . '</a></li>' . "\n";

// Empty setting "levels" same as 0
if ( $bfa_ata['levels_cat_menu_bar'] == '' ) {
$bfa_ata['levels_cat_menu_bar'] = 0;

// Create menu list
echo bfa_hor_cats($bfa_ata['sorting_cat_menu_bar'], $bfa_ata['order_cat_menu_bar'],
$bfa_ata['levels_cat_menu_bar'], $bfa_ata['titles_cat_menu_bar'], $bfa_ata['exclude_cat_menu_bar']);

// Close table if centered
if ( strpos($header_items,"%cat-center") !== FALSE ) {
echo '</ul></td></tr></table></div>' . "\n";
} else {
echo '</ul></div>' . "\n";

$cat_menu_bar = ob_get_contents();


I then pasted it into bfa_footer.php just above the following code:

// Current Year
$footer_content = str_replace("%current-year%", date('Y'), $footer_content);

That resulted in no change, so I undid it all.

I also tried, under ATO > Style & Edit FOOTER > Footer Content, to put %cats and %cats% in the area just above "Copyright", but that just resulted in the text "%cats" showing up just before "Copyright."
Thanks in advance for any assistance.
Old Oct 4, 2010, 09:58 AM
lmilesw's Avatar
10,176 posts · Jul 2009
Central New York State USA
I would add a new widget area to the footer and then use a menu widget in that area. For reference on the new widget area see ATO>Add New Widget Areas and for the menu widget do a search on wordpress.org
~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.


2nd, category, edit, menu, move

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing category order in category menu bar, not in sidebar cat. list paulae Page & Category Menu Bars 13 Mar 30, 2011 06:36 PM
Category Menu bar options - scrolling clickable category marquee alfie Page & Category Menu Bars 76 Jun 5, 2010 10:34 PM
How do I highlight active category on a combined page & category menu bar? samij0 Page & Category Menu Bars 0 Mar 11, 2010 02:37 PM
[SOLVED] Category / Archive display problem with category menu bar madfab685 Page & Category Menu Bars 4 Jan 2, 2010 05:12 AM

All times are GMT -6. The time now is 05:34 PM.

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