WordPress.org

Ready to get started?Download WordPress

Forums

custom sidebar per page (3 posts)

  1. iluvwrdpress
    Member
    Posted 3 years ago #

    Hi,

    I was reading the previous post: http://wordpress.org/support/topic/custom-sidebar-per-page?replies=15
    about creating a custom sidebar per page but still a little confused.

    I'm trying to figure out where to put that if statement in my theme. There is a page called page.php in my list of pages with this code at the top:

    <?php include (TEMPLATEPATH . '/sidebarLeft.php'); ?>

    would i be adding the if statement to that code?

    Also, do I make new php files of the custom sidebars that I will be creating? Is there a template to use for this? Can widgets still be added through the WP interface?

    I'm using the Eximius theme.

    Thanks!

    new and learning...

  2. Brian Layman
    Member
    Posted 3 years ago #

    You can do this without any theme editing with my plugin:

    http://wordpress.org/extend/plugins/per-page-sidebars/

  3. liatmgat
    Member
    Posted 3 years ago #

    OH MY GOD YOU ARE A LIFESAVER!! In all my searching for how to do this, and in all my stressing about php and template editing, I had no idea there was a plugin for this. THANK YOU, THANK YOU, THANK YOU, from the bottom of my heart!!

Topic Closed

This topic has been closed to new replies.

About this Topic