• Resolved katjo15

    (@katjo15)


    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!

Viewing 5 replies - 1 through 5 (of 5 total)
  • esmi

    (@esmi)

    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.

    Thread Starter katjo15

    (@katjo15)

    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!

    Thread Starter katjo15

    (@katjo15)

    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!

    esmi

    (@esmi)

    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.

    Thread Starter katjo15

    (@katjo15)

    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! 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘moving sidebar for certain pages’ is closed to new replies.