• stupid widgets.
    I only get one widget zone to show from the register_sidebar code here.
    functions php register_sidebar

    I am on a localhost, with PHP5.3.5

    <?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Home Page Widgets')) : ?>
    <?php endif; ?>

    I put the above code in the basic theme sidebar, it shows.

    <?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Listing Page Widgets')) : ?>
    <?php endif; ?>

    I put this in the main content area of my Listings Page and zilch, nada, butkus.

    eight hours at this.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter ggarmento

    (@ggarmento)

    Okay the ANSWER is: [drum roll-l-l]

    Make sure your Listings Page and Agent Page are using their respective Page Templates.

    cheeezzz and RICE!!!
    10 hours to figure this out.
    I am not likely to forget it now.

    if ( function_exists('register_sidebar') )
    register_sidebar(array('name'=>'sidebar1',
    'description'   => 'widgets for: Home Page in siderbar.',
    'before_widget' => '<div id="%1$s" class="side-c %2$s">', // Removes <li>
    'after_widget' => '</div>', // Removes </li>
    'before_title' => '<h3>', // Replaces <h2>
    'after_title' => '</h3>', // Replaces </h2>
    ));
    register_sidebar(array('name'=>'sidebar2',
    'description'   => 'widgets for: Listing Page in siderbar.',
    'before_widget' => '<div id="%1$s" class="side-c %2$s">', // Removes <li>
    'after_widget' => '</div>', // Removes </li>
    'before_title' => '<h3>', // Replaces <h2>
    'after_title' => '</h3>', // Replaces </h2>
    ));
    register_sidebar(array('name'=>'sidebar3',
    'description'   => 'widgets for: Agent Page in siderbar.',
    'before_widget' => '<div id="%1$s" class="side-c %2$s">', // Removes <li>
    'after_widget' => '</div>', // Removes </li>
    'before_title' => '<h3>', // Replaces <h2>
    'after_title' => '</h3>', // Replaces </h2>
    ));

    goes in the function.php
    and this

    <div align="center">
    <?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('<strong>sidebar2</strong>')) : ?>
    <?php endif; ?>
    </div>

    goes in each area of a page
    that you want the widget to show up.

    Thread Starter ggarmento

    (@ggarmento)

    Okay the ANSWER is: [drum roll-l-l]

    Make sure your Listings Page and Agent Page are using their respective Page Templates.

    cheeezzz and RICE!!!
    10 hours to figure this out.
    I am not likely to forget it now.

    if ( function_exists('register_sidebar') )
    register_sidebar(array('name'=>'sidebar1',
    'description'   => 'widgets for: Home Page in siderbar.',
    'before_widget' => '<div id="%1$s" class="side-c %2$s">', // Removes <li>
    'after_widget' => '</div>', // Removes </li>
    'before_title' => '<h3>', // Replaces <h2>
    'after_title' => '</h3>', // Replaces </h2>
    ));
    register_sidebar(array('name'=>'sidebar2',
    'description'   => 'widgets for: Listing Page in siderbar.',
    'before_widget' => '<div id="%1$s" class="side-c %2$s">', // Removes <li>
    'after_widget' => '</div>', // Removes </li>
    'before_title' => '<h3>', // Replaces <h2>
    'after_title' => '</h3>', // Replaces </h2>
    ));
    register_sidebar(array('name'=>'sidebar3',
    'description'   => 'widgets for: Agent Page in siderbar.',
    'before_widget' => '<div id="%1$s" class="side-c %2$s">', // Removes <li>
    'after_widget' => '</div>', // Removes </li>
    'before_title' => '<h3>', // Replaces <h2>
    'after_title' => '</h3>', // Replaces </h2>
    ));

    goes in the function.php
    and this

    <div align="center">
    <?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('sidebar2')) : ?>
    <?php endif; ?>
    </div>

    goes in each area of a page that you want
    the widget to show up… just change the
    sidebar number to match.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Multipile Widgets ruining my life….’ is closed to new replies.