Title: Hide Sidebar in certain Posts
Last modified: August 24, 2016

---

# Hide Sidebar in certain Posts

 *  [chanchalkariwala](https://wordpress.org/support/users/chanchalkariwala/)
 * (@chanchalkariwala)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/hide-sidebar-in-certain-posts/)
 * Hi, I have certain posts where I do not want to display the Right Sidebar.
 * I tried commenting the following line from single.php
 * <?php ttfmake_maybe_show_sidebar( ‘right’ ); ?>
 * But to no avail.
 * I don’t mind modifying the theme, I’m using a child Theme.
 * Anybody know how to do this?

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

 *  [kggs](https://wordpress.org/support/users/kggs/)
 * (@kggs)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/hide-sidebar-in-certain-posts/#post-5989013)
 * following…
    I would prefer not to have to do a child theme, but I can if I have
   to.
 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/hide-sidebar-in-certain-posts/#post-5989014)
 * [@kggs](https://wordpress.org/support/users/kggs/) – are you offering help here?
 *  [kggs](https://wordpress.org/support/users/kggs/)
 * (@kggs)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/hide-sidebar-in-certain-posts/#post-5989017)
 * Sorry – yes, that was unclear.
 * I am following this post because I have the same issue.
 * I was clarifying that, unlike the original poster, I would prefer not to have
   to use a child theme, but that I am capable of using a child theme if that’s 
   the only way to accomplish this goal.
 * Hope that’s more clear.
 * Do you think there’s a way to do this??!!
 * THANKS!! 🙂
 *  Thread Starter [chanchalkariwala](https://wordpress.org/support/users/chanchalkariwala/)
 * (@chanchalkariwala)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/hide-sidebar-in-certain-posts/#post-5989024)
 * Hi!
 * Well I did find a way, but I made changes to single.php and by using custom fields
   in posts
 * So if the custom field is available in the post –
    `<main id="site-main" class
   ="site-main" role="main" style="width:100%">`
 * and
 * put this statement in and if condition
    `ttfmake_maybe_show_sidebar( 'right' );`

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

The topic ‘Hide Sidebar in certain Posts’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/make/1.10.9/screenshot.jpg)
 * Make
 * [Support Threads](https://wordpress.org/support/theme/make/)
 * [Active Topics](https://wordpress.org/support/theme/make/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/make/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/make/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [chanchalkariwala](https://wordpress.org/support/users/chanchalkariwala/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/hide-sidebar-in-certain-posts/#post-5989024)
 * Status: not resolved