Support » Fixing WordPress » Create new page template without sidebar

  • Resolved bck5WG


    I need to create one page that doesn’t have the sidebar. My theme is Paramitopia. Can someone please explain how I can do this? Sorry, I know nothing about coding, so if I have to edit anything, please include step by step details. Thanks!

Viewing 10 replies - 1 through 10 (of 10 total)
  • Michael


    Forum Moderator

    have you reviewed ?

    – make a copy of page.php and save it as (example) no-sidebar-page.php

    – add this at the very top (example):

    Template Name: No-Sidebar Page Template

    – remove this line:

    <?php get_sidebar(); ?>

    in style.css, add (at the very end):

    .page-template-no-sidebar-page-php #content, .page-template-no-sidebar-page-php .post { width: 960px; }

    Thanks, alchymyth. This may sound like a stupid question, but how do I make a copy of page.php? Do I do that through FTP or can that be done in the site dashboard? If done through FTP, do I save no-side-bar-page.php at the same level as the page.php?

    Thanks, really appreciate it.

    Christine Rondeau


    Volunteer Forum Moderator

    Hi bck5WG,

    Yes you’ll need FTP to do this.

    Connect to your server and download your entire theme files.
    Make a duplicate of page.php in your theme folder and rename it no-sidebar-page.php
    Then follow alchymyth’s instruction.

    Once you have that you insert the template at the same level as page.php

    Hi Christine,

    So if I understand this correctly, in FTP, I download all the theme files onto my computer, then copy page.php and rename the copy no-sidebar-page.php, then upload only no-sidebar-page.php to the same level as page.php. Question is, instead of downloading, the theme files, is it possible to just right click page.php in FTP and make a copy directly? This is probably something I should know, but I hardly ever go in FTP, because it scares me.

    Christine Rondeau


    Volunteer Forum Moderator

    i’ve never done that, but if that works then why not.
    I personally always make edits to my theme files on my computer and then upload them to the server. That way in case anything happens, I can undo and re-upload.

    I’ll keep this thread open for a bit. I plan to work on it this weekend. Many, many thanks alchymyth and Christine for your support.

    Holy cow alchymyth! It actually worked. Absolutely genius. Thanks, Christine and alchymyth.

    I’m having trouble doing this in twentytwelve.

    I’ve added the template with the getsidebar() line removed but when a page is set to have that template, the sidebar stubbornly turns up under the rest of the content.

    I don’t understand the need for new for the new style rule either. If there’s no sidebar, why does it need to have a width set?

    I did it and sidebar content disappeared but frame still there



    Forum Moderator


    please start your own topic (possibly in the support section of your used theme) and post more details.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Create new page template without sidebar’ is closed to new replies.