Title: Using different template
Last modified: August 22, 2016

---

# Using different template

 *  [naino](https://wordpress.org/support/users/naino/)
 * (@naino)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/using-different-template/)
 * I don’t able to set a no-sidebar template for post page. I tried to search this
   option in customizer option but there isn’t any, i tried to change main index
   template code whit no-sidebar code realy sidebar there is no but style and alignment
   is identic to before.
    You can see my blog to look at result: [radnuclmagn.com](http://radnuclmagn.com)
 * thanks and apologize my incompetence.
    however your theme is very great

Viewing 1 replies (of 1 total)

 *  Thread Starter [naino](https://wordpress.org/support/users/naino/)
 * (@naino)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/using-different-template/#post-5315946)
 * Solved!!!
    I have changed “has sidebar” in function.php whit “no sidebar”.
 * Before
 *     ```
       function graphy_body_classes( $classes ) {
   
       	if ( is_active_sidebar( 'sidebar' ) && ! is_page_template('nosidebar.php') ) {
       		$classes[] = 'has-sidebar';
       	} else {
       		$classes[] = 'no-sidebar';
       	}
       ```
   
 * After
 *     ```
       function graphy_body_classes( $classes ) {
   
       	if ( is_active_sidebar( 'sidebar' ) && ! is_page_template('nosidebar.php') ) {
       		$classes[] = 'no-sidebar';
       	} else {
       		$classes[] = 'no-sidebar';
       	}
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Using different template’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/graphy/2.3.2/screenshot.png)
 * Graphy
 * [Support Threads](https://wordpress.org/support/theme/graphy/)
 * [Active Topics](https://wordpress.org/support/theme/graphy/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/graphy/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/graphy/reviews/)

## Tags

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

 * 1 reply
 * 1 participant
 * Last reply from: [naino](https://wordpress.org/support/users/naino/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/using-different-template/#post-5315946)
 * Status: not resolved