Quantcast
Channel: Topic Tag: footer | WordPress.org
Viewing all articles
Browse latest Browse all 13554

ElectricFeet on "[Theme: Customizr] Text Area Under Footers"

$
0
0

If what batharoy has posted is correct, then you need to:
1. Add the following to your functions.php:

// Adds a widget area. It gets registered automatically as part of the arra
add_filter( 'tc_footer_widgets', 'my_footer_widgets');
function my_footer_widgets( $default_widgets_area ) {
    $default_widgets_area['footer_four'] = array(
          'name'                 => __( 'Footer Widget Area Four' , 'customizr' ),
          'description'          => __( 'Just use it as you want !' , 'customizr' )
    );
    return $default_widgets_area;
}

// Adds a class to style footer widgets
add_filter( 'footer_four_widget_class', 'my_footer_widget_class');
function my_footer_widget_class() {
    return 'span12';
}

(this uses the "Use case : adding a fourth widget area below the three defaults footer widget area" from this snippet).

2. Style it with:

#footer_four .widget {
    float: left;
    margin-right: 20px;
}
#footer_four .widget-title {
    text-align:left;
}

Tell me we've got it now, please :-)


Viewing all articles
Browse latest Browse all 13554

Trending Articles