This procedure will let you create custom full width post pages and you can select which template each post need to use as you are posting it. To achieve this, you need install a plugin called Custom Post Template and follow the directions below. This post is using Custom Full Width Template.

You will need to create a file in your themes folder which for the examples sake we will name fullwidth-posts.php. You can copy your normal single.php code and make some changes

Top part of single.php there is few lines and twenty ten theme has this

<?php

/**

YouTube Preview Image

* The Template for displaying all single posts.

*

* @package WordPress

* @subpackage Twenty_Ten

* @since Twenty Ten 1.0

*/

Change “The Template for displaying all single posts.” To

Template Name Posts: Full Width Posts no sidebar

This is the name of the template.

Add fullwidth class to

so you will change to

<div id=”container” class=”fullwidth”>

Since this template is full width you will need to take the side bar code out scroll down

and delete

Once you made this three changes save the file.

In twenty ten theme there is no css code for full width template so you need to add full width class to #content in style.css

.fullwidth #content {

margin: 0 auto;

width: 900px;

Save the file.

Once you are done creating the custom template for full width  posts,  Considering you already have your plugin activated when you go in your WordPress admin panel to write a new post, you will see a drop down box that gives you an option to select which template you want for that specific post.

Avatar of Govindji Patel

About

I am Author/Publisher WordPress Coach and Consultant who enjoys writing tutorials and helping wordpress users build better WordPress website/blog.

Related Posts

  • Finally, an issue that I am passionate about. I have looked for information of this caliber for the last several hours. Your site is greatly appreciated.

  • Thank you for visiting my website and find the article use full

  • sam

    Hi..Sir
    I’m realllly frustated about creating website.
    Already having Domain name and Linux Hosting Package.
    Don’t know what to do next.
    Wanted to create wordpress blog.
    My site is still in Under construction.

    Regards..
    http://ivtu.in

  • I just clicked on the url you have in the comment and you have a under construction page this can be place holder that was setup by host so check if you have index.html or default.html along with wordpress files and folder in root if so delete the file.

    When I add /wp-admin to your url it takes me your log in page so your wordpress is installed is this place holder is holding back.

blog comments powered by Disqus
Premium wordpress theme
Skype Status
Need Help with Wordpress Chat with me - Govindji Patel: My status is Online
» Get Skype, call free! If Offline please leave Message
Become A Fan
Free Report

WordPress Optimization Secrets

Get Your Blog To Rank Higher

Register and Download Free Report

Twenty Eleven Child Theme

Upgrade and get set of 35 videos on

how to create and customize child theme

Buy Me Coffee
Donation



Other Amount:



I appreciate a donation if you find my tutorials helpfull :



Your privacy will never be compromised or shared.
Congratulations

Thank you for Subscribing Please check your email for a confirmation email