I want to have a frontpage on the site with 3 widget areas (columns) in the center column area. Due to the recent changes to the theme, I'm adding this widget area code in index.php:
PHP Code:
if (is_front_page()) {
bfa_widget_area('name=ForsideWidgets&cells=3&before_widget=<div id="%1$s" class="header-widget %2$s">&after_widget=</div>');
} else {
echo "";
}
Warning: array_key_exists() expects parameter 2 to be array, string given in /var/www/(domain removed)/public_html/wp-content/themes/atahualpa367/functions.php on line 404
Warning: array_key_exists() expects parameter 2 to be array, string given in /var/www/(domain removed)/public_html/wp-content/themes/atahualpa367/functions.php on line 404
Warning: array_key_exists() expects parameter 2 to be array, string given in /var/www/(domain removed)/public_html/wp-content/themes/atahualpa367/functions.php on line 404
On line 403-407 in functions.php, I have:
PHP Code:
// Check if any of the cells have a set width
for ( $i = 1; $i <= $r['cells']; $i++ ) {
if ( array_key_exists('width_' . $i, $args) AND !empty($args['width_' . $i]) ) {
$colgroup = 'yes';
}
}
Server: Apache/2.2.17 (Unix) PHP/5.3.5