• I know this topic has been addressed ad nauseum, but please bear with my lack of understanding.
    I am creating a WordPress site that has a combination of static pages, a blog page, and a wp ecommerce site. My (slightly customized) them is magazine-basic. My problem is that the pages that make up the ecommerce site are too large to fit in the normal content pages.
    I have tried to create custom page templates, but since the original page template does not call the sidebar.php, I can’t find where to edit that out for this custom page template.

    My original page template looks like this:

    <?php get_header(); ?>
    <?php get_template_part( ‘loop’, ‘page’ ); ?>
    <?php get_footer(); ?>

    My custom page template looks like this:
    <?php /* Template Name: HW No Sidebar */ ?>
    <?php get_header(); ?>
    <?php get_template_part( ‘loop’, ‘page’ ); ?>
    <?php get_footer(); ?>

    Obviously, this is going to display the same as the rest of the pages, because there is no edit to remove sidebars.

    The test site where I am working on this is
    http://www.pawsitivelysimpledesign.com/workspace

    Thanks!

Viewing 1 replies (of 1 total)
  • if you look at his line:

    <?php get_template_part( 'loop', 'page' ); ?>

    it leads you to a loop-page.php template file.

    check if the sidebar call is in there;

    then posssibly create a new template loop-page-ns.php where you remove the call;
    and edit the line to:

    <?php get_template_part( 'loop', 'page-ns' ); ?>

Viewing 1 replies (of 1 total)

The topic ‘Custom page with no side-bar’ is closed to new replies.