Adding another sidebar pulls in the blog sidebar info

  • In Progress
    Posted in: Versi WordPress  

  • Member
    February 24, 2016 at 4:05 pm #31603


    In the functions file I added the following code right under the blog sidebar…
    ‘name’ => __(‘Footer Sidebar’,'rocknrolla’ ),
    ‘id’ => ‘footer-widgets’,
    ‘description’ => __( ‘Copyright in Footer.’,'rocknrolla’ ),
    ‘before_widget’ => ‘<div id=”%1$s” class=”widget %2$s”>’,
    ‘after_widget’ => ‘</div>’,
    ‘before_title’ => ‘<h3>’,
    ‘after_title’ => ‘</h3>’

    I see in the blog template page where it’s called using <?php get_sidebar('blog'); ?> so I changed it to <?php get_sidebar('footer'); ?> where I want my footer widget items to show but it’s pulling in the blog sidebar for some reason. “Footer Sidebar” does actually show up in the widgets panel, and I have added items to that sidebar. Any help would be appreciated.

    • This topic was modified 3 years by  axiomlife.

    Sorry, this forum is for verified users only. Please Login or Register to continue

Comments are closed.