Title: Problems with widgets when using Multisites
Last modified: August 19, 2016

---

# Problems with widgets when using Multisites

 *  Resolved [Odenberg](https://wordpress.org/support/users/murmelin/)
 * (@murmelin)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/problems-with-widgets-when-using-multisites/)
 * Hi!
 * Im building a website, mostly with static pages. But to make some sections extra
   easy to update; I have choosed to make these in blog form. The static pages all
   have a left sidebar-menu with the different pages listed with the Page-widget.
 * The three blog-sections also has the left sidebar menu that lists the pages, 
   and an extra right sidebar with content for the specific blog subject.
 * My problem is that the Page-listings doesnt show in my 2nd and 3rd blog (the 
   ones I have added with superadmin).
 * Here is my webpage:
    [http://www.bastardforlag.se/wordpress](http://www.bastardforlag.se/wordpress)
 * This is how I want it to look like:
    [http://bastardforlag.se/wordpress/blogg/](http://bastardforlag.se/wordpress/blogg/)
 * And this is what it looks like; an empty left sidebar:
    [http://bastardforlag.se/wordpress/handla/](http://bastardforlag.se/wordpress/handla/)
 * It there a simple way to solve this problem, or do I have to create LL new Pages
   in blog 2 and 3?
 * Can someone please help me?

Viewing 15 replies - 1 through 15 (of 20 total)

1 [2](https://wordpress.org/support/topic/problems-with-widgets-when-using-multisites/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/problems-with-widgets-when-using-multisites/page/2/?output_format=md)

 *  [Andrea Rennick](https://wordpress.org/support/users/andrea_r/)
 * (@andrea_r)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/problems-with-widgets-when-using-multisites/#post-1734524)
 * Widgets are specific to each blog you are on. Just like at wordpress.com if you
   have two blogs there.
 * If you want the sidebars to be exactly the same on all sites using the same theme–
   don’t use widgets. Hardcode the sidebar.php file. (the way we did it before widgets)
 *  Thread Starter [Odenberg](https://wordpress.org/support/users/murmelin/)
 * (@murmelin)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/problems-with-widgets-when-using-multisites/#post-1734874)
 * Thank you for your answer.
 * Do you know were I can find info on how to hardcode the sidebar?
 *  [Andrea Rennick](https://wordpress.org/support/users/andrea_r/)
 * (@andrea_r)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/problems-with-widgets-when-using-multisites/#post-1734877)
 * The codex.
    [http://codex.wordpress.org/Customizing_Your_Sidebar](http://codex.wordpress.org/Customizing_Your_Sidebar)
 * Or look at the theme you have in the sidebar.php. See the code that’s in there
   that show up when you don’t have any widgets? That’s hardcoded.
 * This is what we did back in the olden days, before there were widgets.
 *  Thread Starter [Odenberg](https://wordpress.org/support/users/murmelin/)
 * (@murmelin)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/problems-with-widgets-when-using-multisites/#post-1734881)
 * Thanks again!
 * This is what my sidebar1.php looks like:
 * <div id=”sidebar”>
 * <div id=”menytop”>
 * </div>
 * <div id=”meny”>
    - <?php if ( function_exists(‘dynamic_sidebar’) && dynamic_sidebar() ) : else:?
      >
 *  -  <?php wp_list_pages(‘sort_column=menu_order’); ?>
 * <?php endif; ?>
 * </div>
 * <div id=”menybottom”>
    </div>
 * </div>
 * I thaught that
    – – – – – – – – –
    -  <?php wp_list_pages(‘sort_column=menu_order’); ?>
 * – – – – – – – – – – –
    was hardcode and not a widget. Im I missing something 
   essential?
 *  [Andrea Rennick](https://wordpress.org/support/users/andrea_r/)
 * (@andrea_r)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/problems-with-widgets-when-using-multisites/#post-1734882)
 * Yes, that pages list is hardcoded. It;s within the widget area, so if a user 
   moves a widget in that spot, it will get replaced.
 * If you want it to stay there, then move that line outsdie the widget if statement.
 *  Thread Starter [Odenberg](https://wordpress.org/support/users/murmelin/)
 * (@murmelin)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/problems-with-widgets-when-using-multisites/#post-1734883)
 * Thanks a lot!
    Do you mean something like this?
 * <div id=”sidebar”>
 * <div id=”menytop”>
 * </div>
 * <div id=”meny”>
    -  <?php wp_list_pages(‘sort_column=menu_order’); ?>
 *  -  <?php if ( function_exists(‘dynamic_sidebar’) && dynamic_sidebar() ) : else:?
      >
    - <?php endif; ?>
 * </div>
 * <div id=”menybottom”>
    </div>
 * </div>
 *  [Andrea Rennick](https://wordpress.org/support/users/andrea_r/)
 * (@andrea_r)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/problems-with-widgets-when-using-multisites/#post-1734884)
 * Yes.
 * Now even if a user puts a widget in there, the page list remains.
 *  Thread Starter [Odenberg](https://wordpress.org/support/users/murmelin/)
 * (@murmelin)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/problems-with-widgets-when-using-multisites/#post-1734885)
 * Okay. Thanks a lot for you kind help. Have a nice weekend!
 *  Thread Starter [Odenberg](https://wordpress.org/support/users/murmelin/)
 * (@murmelin)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/problems-with-widgets-when-using-multisites/#post-1734891)
 * I still cant make it work. I want the pages in the left sidebar to show in both
   blogs; the one called BLOGG and the one called HANDLA. How do I do this? Do I
   have to create all the pages all over again in the HANDLA section, to make them
   show up int the left sidebar?
 * What am I doing wrong?
 *  [Andrea Rennick](https://wordpress.org/support/users/andrea_r/)
 * (@andrea_r)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/problems-with-widgets-when-using-multisites/#post-1734892)
 * > Do I have to create all the pages all over again in the HANDLA section, to 
   > make them show up int the left sidebar?
 * Yes. or use the switch_to_blog function to pull the page listing from the main
   blog.
 *     ```
       <?php switch_to_blog(1); ?>
       //do stuff
       <?php restore_current_blog(); ?>
       ```
   
 *  Thread Starter [Odenberg](https://wordpress.org/support/users/murmelin/)
 * (@murmelin)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/problems-with-widgets-when-using-multisites/#post-1734893)
 * Oh. Now it got to difficult for a beginner like me. Where is the code supposed
   to go? And is there anywhere I can read about Multiblogs and how to set them 
   up? I tried to google but dont find the answers I need.
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [15 years, 7 months ago](https://wordpress.org/support/topic/problems-with-widgets-when-using-multisites/#post-1734894)
 * [http://codex.wordpress.org/Create_A_Network](http://codex.wordpress.org/Create_A_Network)
 *  Thread Starter [Odenberg](https://wordpress.org/support/users/murmelin/)
 * (@murmelin)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/problems-with-widgets-when-using-multisites/#post-1734895)
 * Sorry ipstemu, but I cant find anything in the Create_A_Network link, that solves
   my problem with pages from the main blog not showing up in the secondary blog.
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [15 years, 7 months ago](https://wordpress.org/support/topic/problems-with-widgets-when-using-multisites/#post-1734896)
 * You asked
 * > And is there anywhere I can read about Multiblogs and how to set them up?
 * And the answer is: [http://codex.wordpress.org/Create_A_Network](http://codex.wordpress.org/Create_A_Network)
 * Unless you’re asking ‘How do I create multiple subsites on my network’ 🙂 Hard
   to tell really.
 *  [Andrea Rennick](https://wordpress.org/support/users/andrea_r/)
 * (@andrea_r)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/problems-with-widgets-when-using-multisites/#post-1734897)
 * > Oh. Now it got to difficult for a beginner like me. Where is the code supposed
   > to go?
 * in your theme.

Viewing 15 replies - 1 through 15 (of 20 total)

1 [2](https://wordpress.org/support/topic/problems-with-widgets-when-using-multisites/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/problems-with-widgets-when-using-multisites/page/2/?output_format=md)

The topic ‘Problems with widgets when using Multisites’ is closed to new replies.

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 20 replies
 * 3 participants
 * Last reply from: [Odenberg](https://wordpress.org/support/users/murmelin/)
 * Last activity: [15 years, 7 months ago](https://wordpress.org/support/topic/problems-with-widgets-when-using-multisites/page/2/#post-1734902)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
