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 5 replies - 16 through 20 (of 20 total)

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

 *  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/page/2/#post-1734898)
 * ipstenu:
    Sorry, Im swedish and wrighting in english isnt very easy for me. im
   looking for a solution for my specific problem (described in my initial post)
   with my secondary blogg; how to get the pages from my base blgg in to the meny
   of my second blog.
 * Andrea:
    Where in my theme is it supposted to be placed?
 *  [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/page/2/#post-1734899)
 * In the area of your theme that has the menu. becasue that’s what you want to 
   replace. usually this is in header.php.
 *  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/page/2/#post-1734900)
 * Thanks so much for your answer.
 * I must do something wrong. I took the code and placed it in my sidebar.php. Like
   this:
 * – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
    <div id=”meny”>
    -  <?php wp_list_pages(‘title_li=<h2>Pages</h2>’); ?>
       <?php switch_to_blog(
      1); ?> //do stuff <?php restore_current_blog(); ?>
 *  -  <?php if ( function_exists(‘dynamic_sidebar’) && dynamic_sidebar() ) : else:?
      >
    - <?php endif; ?>
 * </div>
    – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
 * But the only thing that happens is that I get a white gap with black text //get
   stuff in the sidebar meny. Have I placed it wrong?
 * [http://bastardforlag.se/wordpress/handla9/](http://bastardforlag.se/wordpress/handla9/)
 *  [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/page/2/#post-1734901)
 *     ```
       <div id="meny">
   
             <?php switch_to_blog(1); ?>
   
             <?php wp_list_pages('title_li=<h2>Pages</h2>'); ?>
   
             <?php restore_current_blog(); ?> 
   
             <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar() ) : else : ?>
   
             <?php endif; ?> 
   
       </div>
       ```
   
 * The “do stuff” part was where you were supposed to substitute whatever you wanted
   to show.
 *  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/page/2/#post-1734902)
 * THANK YOU!!! THANK YOU!!! THANK YOU!!!
 * It works perpectly and I have a big smile on my face!
 * Thanks again!

Viewing 5 replies - 16 through 20 (of 20 total)

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

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
