WordPress.org

Ready to get started?Download WordPress

Forums

Widget disappear and scale (2 posts)

  1. alengton
    Member
    Posted 4 years ago #

    Hi all!
    I have follow a tutorial to make a widgets-ready footer on my blog. This works except for one thing: I had another sidebar widget in the theme and this seems to get in conflict. When adding a widget to any sidebar and then reloading, the first sidebar (the one that came with the theme) lose all of its widgets and the ones in the other sidebars, scale up. Here's the code in the functions.php file, hope that someone could help me.

    if(function_exists('register_sidebar'))
        register_sidebar(array(
            'name' => 'Right Column',
            'before_widget' => '',
            'after_widget' => '',
            'before_title' => '<h2 class="widgettitle">',
            'after_title' => '</h2>',
      )  );
    
    register_sidebars(5,array(
            'before_widget' => '',
            'after_widget' => '',
            'before_title' => '<h4>',
            'after_title' => '</h4>',
          )
    );
  2. alengton
    Member
    Posted 4 years ago #

    No one?

Topic Closed

This topic has been closed to new replies.

About this Topic