Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Post-Kicker, -Byline & -Footer (http://forum.bytesforall.com/forumdisplay.php?f=17)
-   -   how do I put a %bar2 in the footer (http://forum.bytesforall.com/showthread.php?t=5416)

juandrah Jan 20, 2010 05:47 PM

how do I put a %bar2 in the footer
 
How do I enable %bar1 and %bar2 in bfa_footer.php so that I can enter them into Appearance=>ATA=>Footer=>Style and Edit Footer=>Footer Content to make the header and footer stylings match?

Thanks

juggledad Jan 21, 2010 07:03 AM

there is no automatic way, but if you look at the generated code, you could find the code that is created and put that in the footer

juandrah Feb 2, 2010 07:01 PM

OK, here's my answer. It is a hard code change which allows me to enter %bar1 and %bar2 into ATO=>Footer=>Style and Edit Footer=>Footer Content

In ATO=> Appearance=> Editor=> bfa_footer.php

add the following code anywhere (I preferred at the top just after “global $bfa.ata, $post”)

Code:

// Horizontal bar 1

if ( strpos($footer_content,’%bar1′) !== FALSE ) {
$horizontal_bar1 = ‘<div>&nbsp;</div>’;
}

// Horizontal bar 2

if ( strpos($footer_content,’%bar2′) !== FALSE ) {
$horizontal_bar2 = ‘<div>&nbsp;</div>’;
}

$footer_item_numbers = array(
“%bar1″,
“%bar2″
);

$footer_output = array(
$horizontal_bar1,
$horizontal_bar2
);

$footer_content = str_replace($footer_item_numbers,  $footer_output, $footer_content);

New, different style bars (%bar3, %bar4, etc) can be created by defining them in css.

Also note that by adding any of :

Code:

“%pages”,
“%page-center”,
“%page-right”,
“%cats”,
“%cat-center”,
“%cat-right”,
“%logo”,
“%image”,

into:

Code:

$footer_item_numbers = array(
and correspondingly adding:

Code:

$page_menu_bar,
$page_menu_bar,
$page_menu_bar,
$cat_menu_bar,
$cat_menu_bar,
$cat_menu_bar,
$logo_area,
$header_image,

into

Code:

$footer_output = array(
any of those features become available as options in ATO=>Footer=>Style and Edit Footer=>Footer Content as well

Notes:

On first try %page-center and %cat-center are broken and needs a tweek, however, I see no need to repeat these menu bars in the footer. This is, however, a good springboard to add a separate custom navigation bar in the footer if needed/desired by creating a new function using bfa_hor_cats.php or bfa_hor_pages.php as a template.

While they are NOT broken, the same goes for $logo_area and $header_image. They can be used as templates to create an advertising space in the footer where clickable link images can be placed. Also using $logo_area allows for the RSS feed with icons in the footer as well.


All times are GMT -6. The time now is 10:50 AM.

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