WordPress.org

Ready to get started?Download WordPress

Forums

Multiple Sidebars
HELP! Cant get it to work! (8 posts)

  1. megstaz
    Member
    Posted 1 year ago #

    Hi,

    I cant get this to work at all. It wont show on pages, posts or custom post types.

    I only need it to work on my custom posts sidebar. I installed the plugin, created some sidebars, added the multiple sidebars widget to my sidebar. I have selected the correct sidebar when i create a custom post and yet it still shows the default sidebar, no sign of my sidebar that i created.

    Help please! Have been banging my head over this for days.

    Thanks in advance
    Megan

    http://wordpress.org/extend/plugins/multiple-sidebars/

  2. Andrico
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Megan!

    First I would say you download the new update of the plugin,
    if you do not get to work, let me know again, and try to correct it on your own site.

    regards

    Sorry for my English. I use google translate

  3. Fabian Rosado
    Member
    Posted 1 year ago #

    Megan,

    If it helps, these are the steps we took. Step 3b was our problem:

    1) Download, install and activate the Plugin.

    2) Go to the new Sidebars menu and DEFINE one or more new custom sidebars. Enter their name and add a brief COMMENT to describe them. (I say DEFINE because you actually create the content for the sidebars in Step 3.)

    3) Go to Appearance > Widgets. You will now see the sidebars you created on the right. (a) Add the new Multiple Sidebars Widget to the Default item on the right. (We did NOT add it to the Sidebar item, we added it to Default.) (b) Add your content into each of the new Sidebar items on the right. This is where you actually get to create your sidebar items with the relevant text, graphics, etc.

    4) Create or Edit the page, post, or item where you want to use the new sidebars. A new section on the right should allow you to activate or deactivate the new Sidebars to add them to the page, post, etc. You can order them vertically (top and bottom).

    5) Go to Appearance > Editor and add the following code to Sidebar.php (We replaced everything on our old Sidebar.php with this code, which we pasted inside <div> and </div> tags, but maybe the div's don't matter.)

    <?php
    global $MultipleSidebars;
    $MultipleSidebars -> dynamic_sidebar();
    ?>

    That is it. The pages should now display the sidebar that you activated for each of them with the content that you gave them in the Widget's page. There is also a sub-menu called OPTIONS inside the Sidebars menu where you can activate specific Sidebars as default for new pages, posts, etc.

    I hope this helps make good use of this useful plugin!

  4. buscoseo
    Member
    Posted 1 year ago #

    I don't have sidebar.php only sidebar-primary.php
    My webis : carbosystem.com/nueva

    And my code is:

    <?php global $theme; ?>
    <div class="sidebar-primary">
    <?php
    if(!dynamic_sidebar('sidebar_primary')) {
    $theme->hook('sidebar_primary');
    }
    ?>
    </div><!-- .sidebar-primary -->

    What must I replace?

    I can't find what happen, all the steps are ok but the plugin dosn't work...

    Thank you very much

  5. Andrico
    Member
    Plugin Author

    Posted 1 year ago #

    Hi, Hello!

    What you have to replace it or you have to replace it

    <? php global $ theme;?>
    <div class="sidebar-primary">
    <? php
    if (dynamic_sidebar ('sidebar_primary')) {
    $ theme-> hook ('sidebar_primary');
    }
    ?>
    </ div> <! -. sidebar-primary ->

    by:

    <div class="sidebar-primary">
    <? php
    MS_dynamic_sidebar ();
    ?>
    </ div> <! -. sidebar-primary ->

    Anything I ask again!

    Greetings!

  6. Andrico
    Member
    Plugin Author

    Posted 1 year ago #

    Sorry for my English. I use google translate

  7. Andrico
    Member
    Plugin Author

    Posted 1 year ago #

    Me acabo de dar cuenta que hablas español?

  8. emailmike1994
    Member
    Posted 1 year ago #

    Yo creo que es importante mencionar lo que dijo frosado:

    Go to Appearance > Editor and add the following code to Sidebar.php (We replaced everything on our old Sidebar.php with this code, which we pasted inside <div> and </div> tags, but maybe the div's don't matter.)

    <?php
    global $MultipleSidebars;
    $MultipleSidebars -> dynamic_sidebar();
    ?>

    ¿Es posible poner estas instrucciones en la página "FAQ" de tu plugin?

    Sin esta información, no podía hacerlo funcionar en la manera que quería.

    -------------------------------------------------

    I think it's important to mention what frosado said.

    Is it possible to put these instructions on the FAQ page of your plugin?

    Without this information, I couldn't make the plugin work in the way that I wanted.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.