WordPress.org

Ready to get started?Download WordPress

Forums

Multiple Sidebars
[resolved] Can't get sidebar to show (3 posts)

  1. Fabian Rosado
    Member
    Posted 1 year ago #

    Saludos Andrico,

    Thanks for creating this plug-in!

    Unfortunately I can't get it to work. No sidebar will show. I succesfully installed and activated the plug in, I added the Multiple Sidebar to the Theme's main sidebar widget (not the Deault widget), and I created a few sidebars which I added to a Page by moving them to Active. Still, no sidebars show.

    The code of my sidebar.php file originally read as follows:

    <div id="sidebar">
    	<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Sidebar') ) : ?>
    	<?php endif; ?>
    </div> <!-- end #sidebar -->

    How should it read now; in other words, where do I insert the code below? I tried it a few different ways but could not get it to work.

    <?php
    global $MultipleSidebars;
    if ($MultipleSidebars -> dynamic_sidebar ()) {
    echo "No sidebars selected";
    }
    ?>

    Thank you very much!

    EN ESPANOL:

    Andrico, no me funciona el plugin. Donde debo de anadir el codigo con la declaracion "Global..."? Mi Sidebar.php original lee lo siguiente:

    <div id="sidebar">
    	<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Sidebar') ) : ?>
    	<?php endif; ?>
    </div> <!-- end #sidebar -->

    Intente anadir el codigo nuevo de diferentes maneras per no me funciona. Como debe de leer Sidebar.php?

    Mil gracias!

    -Fabian

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

  2. Andrico
    Member
    Plugin Author

    Posted 1 year ago #

    Cambiar

    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Sidebar') ) : ?>
    	<?php endif; ?>

    por

    global $MultipleSidebars;
    $MultipleSidebars->dynamic_sidebar();
  3. Fabian Rosado
    Member
    Posted 1 year ago #

    Andrico,

    Thank you again for helping me troubleshoot the installation of this plugin. It is working now and makes workable the theme we selected for our site. Thank you!!

    ----------

    Andrico,

    Gracias de nuevo por tu ayuda instalando el plugin en nuestro website. Funciona muy bien y nos dejo usar el theme que habiamos seleccionado. Gracias!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic