-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.php
55 lines (51 loc) · 2.06 KB
/
functions.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
function foundationtheme_widgets_init() {
// Area 1, located at the top of the sidebar.
register_sidebar( array(
'name' => __( 'Primary Widget Area', 'foundationtheme' ),
'id' => 'primary-widget-area',
'description' => __( 'The primary widget area', 'foundationtheme' ),
'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
'after_widget' => '</li>',
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>',
) );
// Area 2, located below the Primary Widget Area in the sidebar. Empty by default.
register_sidebar( array(
'name' => __( 'Secondary Widget Area', 'foundationtheme' ),
'id' => 'secondary-widget-area',
'description' => __( 'The secondary widget area', 'foundationtheme' ),
'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
'after_widget' => '</li>',
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>',
) );
// Area 3, located below in the footer. Empty by default.
register_sidebar( array(
'name' => __( 'Footer Widget Area', 'foundationtheme' ),
'id' => 'footer-widget-area',
'description' => __( 'The footer widget area', 'foundationtheme' ),
'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
'after_widget' => '</li>',
'before_title' => '<h4 class="widget-title">',
'after_title' => '</h4>',
) );
register_sidebar( array(
'name' => __( 'Second footer Widget Area', 'foundationtheme' ),
'id' => 'secondary-footer-widget-area',
'description' => __( 'The secondary footer widget area', 'foundationtheme' ),
'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
'after_widget' => '</li>',
'before_title' => '<h4 class="widget-title">',
'after_title' => '</h4>',
) );
}
/** Register sidebars by running foundationtheme_widgets_init() on the widgets_init hook. */
add_action( 'widgets_init', 'foundationtheme_widgets_init' );
if ( function_exists( 'register_nav_menus' ) ) {
// This theme uses wp_nav_menu() in one location.
register_nav_menus( array(
'primary' => __( 'Primary Navigation', 'foundationtheme' )
) );
}
?>