• Resolved Biny1000

    (@biny1000)


    Hello everybody. And tanks for your help.
    I need some plug in. And cannot find it.

    What I won’t it’s a plugin that make the sidebar in the left (or right dosemt really mater)
    Well change and show a deferent one in all of my page.
    Example.
    1. Page 1 a Download page so in the side bar well be all the files are available for download.
    2. Page 2 a about page so in the side bar well be all the stuff info.

    Tanks any one.
    Binyamin.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You need to edit your sidebar.php file and activate widgets for whatever themes your on. It should look something like this.

    <?php
    if( is_page() ) :
        if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('page_sidebar') ) :
    ?>
    <?php
    endif;
    endif;
    
    if( is_single() ) :
        if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('post_sidebar') ) :
    ?>
    <?php
    endif;
    endif;
    ?>

    And so on and so forth making each if statement specific to each type of widget.

    Thread Starter Biny1000

    (@biny1000)

    Tank you very much for your Ansewr can you help me
    And tell me what is the function to get the page I meen like this
    $tmp = Some_function();
    And tmp well be equal to the page ($tmp = “page?p=14”)
    tanks

    $tmp = $page->ID;

    There is a global $page variable that you can use!

    Thread Starter Biny1000

    (@biny1000)

    Tanks alot for your helping.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Side bar’ is closed to new replies.