Forums

Specific widget on specific page (3 posts)

  1. Nathan Parikh
    Member
    Posted 3 years ago #

    Hey all,
    I'm trying to set up a php if else statement that will tell wordpress to show specific widgets on specific pages. Here's what I have so far, but it's not doing the trick:

    <?php if (!is_page('contact') && function_exists('dynamic_sidebar')) {
    dynamic_sidebar('Contact Sidebar');
    else if (!is_page() && function_exists('dynamic_sidebar')) {
    dynamic_sidebar('Sidebar');
    } ?>

    If someone could help shed some light on this I would appreciate it.
    Thanks!

  2. Nathan Parikh
    Member
    Posted 3 years ago #

    anybody?

  3. bsteinlo
    Member
    Posted 3 years ago #

    download slayer's custom widget editor plugin

Topic Closed

This topic has been closed to new replies.

About this Topic