How Can I Implement A New Page Template In My Theme?

7 replies
  • WEB DESIGN
  • |
I just added a forum page to my blog, However none of the page template options wont allow the forum to stretch across the page(eliminate the sidebar).

Here are the page template options.

1,Default template
2,Archive
3,Sitemap
3,Popular


Its currently in the Default Template Page Format. This is the best choice at the moment.

Below is how it looks at the moment. I would like it to stretch across the page.

See page Here
#forum #implement #page #template
  • Profile picture of the author nicolas simpson
    Any help with this problem anyone?
    Signature
    Discover Reggae | Dancehall [Jamaica]
    {{ DiscussionBoard.errors[4959628].message }}
  • Profile picture of the author mikeavery10
    I am in same trouble like nicolas simpson. Is there any warrior experienced with? please share your experience and advice also.
    {{ DiscussionBoard.errors[4959739].message }}
  • Profile picture of the author Danny Turner
    You need a full width page template - many themes come with one by default
    looks like yours does not
    so you need to create one
    info on do to do this here
    How To Create A Custom WordPress Page Template
    you may also need to edit the themes css files to allow the page content to
    expand to the full width
    If you post this here
    Fiverr
    you should be able to get someone to do it

    OBTW
    Dreams Are Illusions - not necessarily true
    {{ DiscussionBoard.errors[4960035].message }}
  • Profile picture of the author nicolas simpson
    Thank you Danny Turner Thats exactly what i am here trying to figure out
    Signature
    Discover Reggae | Dancehall [Jamaica]
    {{ DiscussionBoard.errors[4960057].message }}
  • Profile picture of the author abrahamgpg
    You can create your own full width page template.

    Here's how to do it.

    Use a FTP program to download your theme's files to your computer. Then use notepad (VERY IMPORTANT: Do NOT use wordpad or even microsoft word) to change the "page.php" file.

    1: Open the page.php file in notepad and immediately save it as "fullwidthpage.php".
    Close notepad to make sure you do not edit the page.php file.

    2: Open the "fullwidthpage.php" in notepad.
    2.1: the first few lines should be

    "
    <?php
    /**
    * The template for displaying all pages. (We are only interested in this line)
    *
    * This is the template that displays all pages by default.
    * Please note that this is the WordPress construct of pages
    * and that other 'pages' on your WordPress site will use a
    * different template.
    */

    get_header(); ?>
    "

    2.2: change it, so it looks like this. :
    "
    <?php
    /**
    * Template Name: fullwidthpage
    *
    * A custom page template without sidebar.
    *
    * The "Template Name:" bit above allows this to be selectable
    * from a dropdown menu on the edit page screen.
    */

    get_header(); ?>
    "


    3: Then look for the line "<?php get_sidebar(); ?>".

    3.1: Just delete that line and save the file

    3.2: Now upload the fullwidthpage.php file using your FTP program to your theme folder.


    This will appear in the dropdown list of templates when you want to publish a new page or post.


    Enjoy.
    Signature
    Live each day as if it are your last day.

    Online Marketing Tips at Abraham's Tips.com.
    Marketers need to be trustworthy.
    Get your TRUST verified SEAL here.
    {{ DiscussionBoard.errors[4962261].message }}
    • Profile picture of the author Danny Turner
      Correct - however if the theme does not have a full width it probably specifies the content area width .... so just adding a new template will result in the page having an empty spot where the sidebar usually shows .... so most times you need to edit the css to allow the content area to go full width as well

      Originally Posted by abrahamgpg View Post

      You can create your own full width page template.

      Here's how to do it.

      Use a FTP program to download your theme's files to your computer. Then use notepad (VERY IMPORTANT: Do NOT use wordpad or even microsoft word) to change the "page.php" file.

      1: Open the page.php file in notepad and immediately save it as "fullwidthpage.php".
      Close notepad to make sure you do not edit the page.php file.

      2: Open the "fullwidthpage.php" in notepad.
      2.1: the first few lines should be

      "
      <?php
      /**
      * The template for displaying all pages. (We are only interested in this line)
      *
      * This is the template that displays all pages by default.
      * Please note that this is the WordPress construct of pages
      * and that other 'pages' on your WordPress site will use a
      * different template.
      */

      get_header(); ?>
      "

      2.2: change it, so it looks like this. :
      "
      <?php
      /**
      * Template Name: fullwidthpage
      *
      * A custom page template without sidebar.
      *
      * The "Template Name:" bit above allows this to be selectable
      * from a dropdown menu on the edit page screen.
      */

      get_header(); ?>
      "


      3: Then look for the line "<?php get_sidebar(); ?>".

      3.1: Just delete that line and save the file

      3.2: Now upload the fullwidthpage.php file using your FTP program to your theme folder.


      This will appear in the dropdown list of templates when you want to publish a new page or post.


      Enjoy.
      {{ DiscussionBoard.errors[4965446].message }}

Trending Topics