WordPress.org

Ready to get started?Download WordPress

Forums

Please! How each pages has different sidebar (6 posts)

  1. dhin
    Member
    Posted 4 years ago #

    I have use tutorial multiply sidebar and I try to organizer the pages

    I want on each page a different sidebar example
    Over Dhini parent menu
    - Beauty
    - Chickmedia
    - Special
    - etc..

    And when I click on Beauty then come new sidebar
    - Stash
    - etc

    Site parent menu
    - Resources
    - WP plugins
    - etc

    But on Over Dhini you see there also Site on sidebar :( and subpage site. That is not what I want.

    Can anyone help me, please

    Thanks

  2. dinosrules
    Member
    Posted 4 years ago #

    well dhin, it is a little difficult to understand you. Can you also provide us with a link?

  3. dhin
    Member
    Posted 4 years ago #

    You can here Over Dhini or Site

  4. esmi
    Theme Diva & Forum Moderator
    Posted 4 years ago #

    How about:

    <?php
    if(is_page('Over Dhini')) get_sidebar('dhini');
    elseif(is_page('Site') get_sidebar('site');
    else get_sidebar();
    ?>

    http://codex.wordpress.org/Conditional_Tags

  5. dhin
    Member
    Posted 4 years ago #

    Where can I put this code Esmi?

    I want to try it

  6. esmi
    Theme Diva & Forum Moderator
    Posted 4 years ago #

    If you're using pages rather than posts/categories for "Beauty", "Stash" etc, you'd just need to add it to page.php.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags