• Resolved Odenberg

    (@murmelin)


    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

    This is how I want it to look like:
    http://bastardforlag.se/wordpress/blogg/

    And this is what it looks like; an empty left sidebar:
    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)
  • 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

    (@murmelin)

    Thank you for your answer.

    Do you know were I can find info on how to hardcode the sidebar?

    The codex.
    http://codex.ww.wp.xz.cn/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

    (@murmelin)

    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?

    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

    (@murmelin)

    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>

    Yes.

    Now even if a user puts a widget in there, the page list remains.

    Thread Starter Odenberg

    (@murmelin)

    Okay. Thanks a lot for you kind help. Have a nice weekend!

    Thread Starter Odenberg

    (@murmelin)

    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?

    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

    (@murmelin)

    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)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Thread Starter Odenberg

    (@murmelin)

    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)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    You asked

    And is there anywhere I can read about Multiblogs and how to set them up?

    And the answer is: http://codex.ww.wp.xz.cn/Create_A_Network

    Unless you’re asking ‘How do I create multiple subsites on my network’ 🙂 Hard to tell really.

    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)

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