WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] moving sidebar for certain pages (6 posts)

  1. katjo15
    Member
    Posted 2 years ago #

    Hello,
    I have been searching through the forums for a solution and have been unable to find just what I'm looking for. Is it possible to move the sidebar from one side to another depending on the page?
    I am planning to use the Shopp plugin (www.shopplugin.net) and would like all the Shopp pages to have a sidebar on the left. On the rest of the pages (home, blog, contact, etc.) the sidebar will remain on the right.
    I am using a TwentyEleven child theme.

    Any help is greatly appreciated!

  2. esmi
    Forum Moderator
    Posted 2 years ago #

    Create a custom page template that includes a call to sidebar.php in your child theme and then apply that new template to your shop pages.

  3. katjo15
    Member
    Posted 2 years ago #

    Thank you @esmi

    A follow up question, I understand creating a custom page template that includes <?php get_sidebar(); ?> and that makes sense, but won't that just call my already existing sidebar that's on the rest of the site? Will I have to create a new sidebar.php that places the sidebar on the left? In the wordpress theme options, the default layout I have selected is "content on left." Will the new custom page template that I create overwrite this default on my shop pages?

    Thank you so much!

  4. katjo15
    Member
    Posted 2 years ago #

    Would it be easier to install wordpress into a subdirectory /shop/, use the same theme from my main site, but just select "content on right." I will be changing the content of the sidebar as well, so it seems like this may be the better way to go.

    Thanks!

  5. esmi
    Forum Moderator
    Posted 2 years ago #

    Will I have to create a new sidebar.php that places the sidebar on the left?

    Do you want different content in this sidebar? If not, then it should be possible to switch the sidebar to the left using CSS.

  6. katjo15
    Member
    Posted 2 years ago #

    Thank you again for the quick response. Since I will be changing the content of the sidebar (and using widgets from the shopp plugin), I think I will create a subdirectory for my storefront. I am very comfortable with html and css, but still fairly new to php functions and more in depth coding, so this seems like to most hassle-free way to go. Thanks so much for your help! :)

Topic Closed

This topic has been closed to new replies.

About this Topic