Adding 3rd footer widget
-
Hi there!
Please help! I’m trying to add a 3rd widget to the footer. I’ve copied and
pasted the following code into the theme function in the functions php (found
the code on another website):register_sidebar(
array(
‘name’ => __( ‘Blog Sidebar’, ‘twentyseventeen’ ),
‘id’ => ‘sidebar-1’,
‘description’ => __( ‘Add widgets here to appear in your sidebar on blog
posts and archive pages.’, ‘twentyseventeen’ ),
‘before_widget’ => ‘<section id=’%1$s’ class=’widget %2$s’>’,
‘after_widget’ => ‘</section>’,
‘before_title’ => ‘<h2 class=’widget-title’>’,
‘after_title’ => ‘</h2>’,
)
);register_sidebar(
array(
‘name’ => __( ‘Footer 1’, ‘twentyseventeen’ ),
‘id’ => ‘sidebar-2’,
‘description’ => __( ‘Add widgets here to appear in your footer.’,
‘twentyseventeen’ ),
‘before_widget’ => ‘<section id=’%1$s’ class=’widget %2$s’>’,
‘after_widget’ => ‘</section>’,
‘before_title’ => ‘<h2 class=’widget-title’>’,
‘after_title’ => ‘</h2>’,
)
);register_sidebar(
array(
‘name’ => __( ‘Footer 2’, ‘twentyseventeen’ ),
‘id’ => ‘sidebar-3’,
‘description’ => __( ‘Add widgets here to appear in your footer.’,
‘twentyseventeen’ ),
‘before_widget’ => ‘<section id=’%1$s’ class=’widget %2$s’>’,
‘after_widget’ => ‘</section>’,
‘before_title’ => ‘<h2 class=’widget-title’>’,
‘after_title’ => ‘</h2>’,
)
);register_sidebar(
array(
‘name’ => __( ‘Footer 3’, ‘twentyseventeen’ ),
‘id’ => ‘sidebar-4’,
‘description’ => __( ‘Add widgets here to appear in your footer.’,
‘twentyseventeen’ ),
‘before_widget’ => ‘<section id=’%1$s’ class=’widget %2$s’>’,
‘after_widget’ => ‘</section>’,
‘before_title’ => ‘<h2 class=’widget-title’>’,
‘after_title’ => ‘</h2>’,
)
);This has added a 3rd footer widget as expected but it dosen’t actually function
when I try to use it. What am I missing?Thanks in advance,
Martine.
The page I need help with: [log in to see the link]
- The topic ‘Adding 3rd footer widget’ is closed to new replies.