Title: Create full width Template
Last modified: August 31, 2016

---

# Create full width Template

 *  Resolved [geedee23](https://wordpress.org/support/users/geedee23/)
 * (@geedee23)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/create-full-width-template/)
 * Hi
 * I am looking to create a full width page template. ie remove my right hand side
   bar. I have created a new php file from my original page.php. Can anyone advise
   what changes I need to make to the code below –
 * Many thanks in advance
 * Graham
 * <?php
    /* Template Name: Full Width */
 *  get_header(); ?>
    <div id=”main” class=”wrap”> <div id=”mainwrap”> <div id=”
   content”> <div id=”contentpad”> <div id=”contentwrap”> <?php if (is_front_page())
   itx_sidebar(‘name=innertop’);?> <?php if (have_posts()) : while (have_posts()){
   the_post();itx_single_content(‘post singlepost’);} ?> <?php else:itx_notfound();
   endif; ?> <div class=”clear”></div> <?php if (is_front_page()) itx_sidebar(‘name
   =innerbottom’);?> </div> </div> </div> <!–/content–> <?php itx_sidebar(‘name=
   sidebar&pos=left’);itx_sidebar(‘name=sidebar&pos=right’);?> <div class=”clear”
   ></div> </div> </div> <!–/main–> <?php get_footer(); ?>

Viewing 9 replies - 1 through 9 (of 9 total)

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/create-full-width-template/#post-7382064)
 * just from looking at the code, try and start with removing this section:
 * `itx_sidebar('name=sidebar&pos=right');`
 * what theme are you using?
 *  Thread Starter [geedee23](https://wordpress.org/support/users/geedee23/)
 * (@geedee23)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/create-full-width-template/#post-7382069)
 * Theme is Calotropis
 *  Thread Starter [geedee23](https://wordpress.org/support/users/geedee23/)
 * (@geedee23)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/create-full-width-template/#post-7382072)
 * That removed the sidebar, but the content of the main pane remained the same 
   width. ie Did not fill the space left by the sidebar.
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/create-full-width-template/#post-7382091)
 * to stretch the remaining content, you will need to adjust the CSS.
 * can you post a link to a page using that page template?
 *  Thread Starter [geedee23](https://wordpress.org/support/users/geedee23/)
 * (@geedee23)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/create-full-width-template/#post-7382096)
 * [http://www.giffnocknorth.co.uk/club-record-female-outdoor/](http://www.giffnocknorth.co.uk/club-record-female-outdoor/)
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/create-full-width-template/#post-7382102)
 * `.page-template-Full-Width #content { width: 100%; }`
 * this CSS class `.page-template-Full-Width` is specific to your page template,
   and is generated by `body_class()`.
 *  Thread Starter [geedee23](https://wordpress.org/support/users/geedee23/)
 * (@geedee23)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/create-full-width-template/#post-7382105)
 * Many thanks. Can you advise how I add this css. I have no experience in doing
   this?
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/create-full-width-template/#post-7382108)
 * either add the CSS into **style.css** of a child theme [https://codex.wordpress.org/Child_Themes](https://codex.wordpress.org/Child_Themes)
   or via a ‘custom CSS’ plugin [https://wordpress.org/plugins/search.php?q=custom+css](https://wordpress.org/plugins/search.php?q=custom+css)
 *  Thread Starter [geedee23](https://wordpress.org/support/users/geedee23/)
 * (@geedee23)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/create-full-width-template/#post-7382113)
 * Thanks Michael, that worked a treat

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Create full width Template’ is closed to new replies.

## Tags

 * [full width page](https://wordpress.org/support/topic-tag/full-width-page/)
 * [template](https://wordpress.org/support/topic-tag/template/)

 * 9 replies
 * 2 participants
 * Last reply from: [geedee23](https://wordpress.org/support/users/geedee23/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/create-full-width-template/#post-7382113)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
