WordPress.org

Forums

Twenty Thirteen
[resolved] No sidebar - static page template problem, TwentyThirteen (4 posts)

  1. LDP-154
    Member
    Posted 1 year ago #

    With WordPress 3.61,using a child-theme of TwentyThirteen, I am trying to create a static page template with no sidebar. I have modified and saved a new page php accordingly (renamed the php file, revised the file description and removed "<?php get_sidebar(); ?>" section), using notepad. I have uploaded the new "page-no_sidebar.php" into the child theme directory, and the "no-sidebar"does appear in my Page Attributes Template options list.

    When I now select the "no-sidebars" option, my page is now without the sidebar but it loses all the theme coding and appear as plain text aligned left including the footer and not much else. I have a feeling using notepad to edit the file may have caused the problem, or I'm overriding the parent Theme somehow, I'm not certain.

    I've tried following the other posts regarding this attempt to make a page template without a sidebar in TwentyThirteen, without success and now I'm stuck. Could anyone with experience and/or suggestions with making a static page with no sidebars in TwentyThirteen give a hand? Thanks for opportunity to reach out.

  2. LDP-154
    Member
    Posted 1 year ago #

    I have found a simpler method to removing sidebars on particular pages by using the Sidebar tool in the Dashboard. Settings - Exposure "Singular and Archive", Handle "Replace Secondary Widget" and Merge Position "Bottom". The Sidebar tool allows you to assign the Sidebar style to particular pages, clean and easy. The style will then appear in your Widget settings as well for further customization as required.

  3. work4rus
    Member
    Posted 4 months ago #

    I've written a detailed post with images on How to create a page without a sidebar in WordPress? based on Twenty Thirteen. Hope it will be helpful.

  4. LDP-154
    Member
    Posted 4 months ago #

    work4rus:

    With this code, it will allow for a much easier "No Sidebar" assignment.

    Much appreciated, Thanks!

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic