Soporte » Plugins y Hacks » Ayuditaaaa!!!!!

  • Estoy intentando hace una llamada o no se como se dice esto y estoy desesperadooooooo. En Mi blog: http://misalumnos.site11.com
    Necesito ayudaaaaaaaaaaaa:
    Estoy intentando desde mi blog poder tener varios sidebar diferentes, es decir, barra lateral para cada pagina diferente, pero no consigo enlazarlo.
    Tengo en function.php este código:
    if ( function_exists(‘register_sidebar’) ) {
    register_sidebar(array(
    ‘before_widget’ => ‘<li id=»%1$s» class=»widget %2$s»>’,
    ‘after_widget’ => »,
    ‘before_title’ => ‘<h2 class=»widgettitle»>’,
    ‘after_title’ => ‘</h2>’,
    ));
    if ( function_exists(‘register_sidebar’) ) register_sidebar(array(
    ‘name’ => ‘Barra lateral 2’,
    ‘id’ => ‘solo_agenda’,
    ‘before_widget’ => ‘<li id=»%1$s» class=»widget %2$s»>’,
    ‘after_widget’ => »,
    ‘before_title’ => ‘<h2 class=»widgettitle»>’,
    ‘after_title’ => ‘</h2>’, ));

    if ( function_exists(‘register_sidebar’) ) register_sidebar(array(
    ‘name’ => ‘Barra lateral 3’,
    ‘id’ => ‘solo_aula’,
    ‘before_widget’ => ‘<li id=»%1$s» class=»widget %2$s»>’,
    ‘after_widget’ => »,
    ‘before_title’ => ‘<h2 class=»widgettitle»>’,
    ‘after_title’ => ‘</h2>’, ));

    if ( function_exists(‘register_sidebar’) ) register_sidebar(array(
    ‘name’ => ‘Sidebar4’,
    ‘id’ => ‘solo_recursos’,
    ‘before_widget’ => ‘<li id=»%1$s» class=»widget %2$s»>’,
    ‘after_widget’ => »,
    ‘before_title’ => ‘<h2 class=»widgettitle»>’,
    ‘after_title’ => ‘</h2>’, ));

    if ( function_exists(‘register_sidebar-enlaces’) ) register_sidebar-enlaces(array(
    ‘name’ => ‘Barra lateral Enlaces’,
    ‘id’ => ‘solo_enlaces’,
    ‘before_widget’ => ‘<li id=»%1$s» class=»widget %2$s»>’,
    ‘after_widget’ => »,
    ‘before_title’ => ‘<h2 class=»widgettitle»>’,
    ‘after_title’ => ‘</h2>’, ));
    }

    Para cada barra lateral, luego tengo los archivos sidebar-agenda, sidebar-aula, sidebar-recursos y sidebar-enlaces, con sus respectivos aula.pho, recursos.php, enlaces.php.
    Cada pagina enlaza con una platilla .php, pero y como hago yo ahora para que lo que pongo en las nuevas sidebar que me aparecen en WIDGETs aparezcan en la barra lateral de la página???
    GRACIAS.
    No lo consigo. ayuda please.

  • El debate ‘Ayuditaaaa!!!!!’ está cerrado a nuevas respuestas.