WordPress.org

Ready to get started?Download WordPress

Forums

Different widget setup for different pages ? (2 posts)

  1. fistofpeanuts
    Member
    Posted 7 years ago #

    Hi ...

    I am experementing with widgets ...The thing is that I can have widgets in my sidebar, but I cannot controll wich widgets appear in my index.php and wich ones are in my single .php ....

    Even if every page would call a different sidebar file...there would be now functionality in the sidebar widget admin screen to controll it ...

    Is there an existing solutions to this ?
    -FOP-

  2. Alex Cragg
    Member
    Posted 7 years ago #

    you can create more than one dynamic sidebar, check out my tutorial. You will need to do it a bit different, and add an if statement, so is_page or is_home then register sidebar 1, is_single then register sidebar 2. Conditional tags and Automattic widget page - there is info on there about more than one dynamic sidebar. hope this helps

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.