Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   Category Menu in Footer (http://forum.bytesforall.com/showthread.php?t=10061)

adwindham Oct 4, 2010 08:34 AM

Category Menu in Footer
 
Hi,

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 {

ob_start();

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();

ob_end_clean();
}
}

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.

lmilesw Oct 4, 2010 08:58 AM

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


All times are GMT -6. The time now is 03:38 PM.

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