Title: Full width posts &#8211; virtue theme
Last modified: August 21, 2016

---

# Full width posts – virtue theme

 *  [Dddt](https://wordpress.org/support/users/dddt/)
 * (@dddt)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/full-width-posts-virtue-theme/)
 * Hello again
    I am trying to have all posts in full width, I have placed the following
   css, but it does not work,
 * .single-post #secondary {display: none;}
    .single-post #primary { width: 100%!
   important; }
 * thanks in advance for your help!

Viewing 15 replies - 1 through 15 (of 45 total)

1 [2](https://wordpress.org/support/topic/full-width-posts-virtue-theme/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/full-width-posts-virtue-theme/page/3/?output_format=md)
[→](https://wordpress.org/support/topic/full-width-posts-virtue-theme/page/2/?output_format=md)

 *  [Ben Ritner – Kadence WP](https://wordpress.org/support/users/britner/)
 * (@britner)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/full-width-posts-virtue-theme/#post-4776831)
 * Don’t use css, in the post settings just select no sidebar:
    [http://docs.kadencethemes.com/virtue/#blog_posts](http://docs.kadencethemes.com/virtue/#blog_posts)
 * Kadence Themes
 *  Thread Starter [Dddt](https://wordpress.org/support/users/dddt/)
 * (@dddt)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/full-width-posts-virtue-theme/#post-4776842)
 * But if I have front end posting and users are submiting posts frontend then I
   should go and select no sidebar option for every single post?
 *  [Ben Ritner – Kadence WP](https://wordpress.org/support/users/britner/)
 * (@britner)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/full-width-posts-virtue-theme/#post-4776870)
 * Or you can add a function, in a child theme add this to your functions.php file:
 * <`?php add_filter(‘kadence_display_sidebar’, ‘kad_sidebar_on_post’);
    function
   kad_sidebar_on_post($sidebar) { if (is_single()) { return false; } return $sidebar;}?
   >`
 *  [Ben Ritner – Kadence WP](https://wordpress.org/support/users/britner/)
 * (@britner)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/full-width-posts-virtue-theme/#post-4776871)
 *     ```
       <?php add_filter('kadence_display_sidebar', 'kad_sidebar_on_post');
       function kad_sidebar_on_post($sidebar) {
         if (is_single()) {
           return false;
         }
         return $sidebar;
       } ?>
       ```
   
 *  Thread Starter [Dddt](https://wordpress.org/support/users/dddt/)
 * (@dddt)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/full-width-posts-virtue-theme/#post-4776877)
 * Child the function.php is the one that accessible through my wordpress admin 
   panel? The one I can find through theme editor?
 *  [Ben Ritner – Kadence WP](https://wordpress.org/support/users/britner/)
 * (@britner)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/full-width-posts-virtue-theme/#post-4776882)
 * If you have a child theme. Have you installed a child theme so your template 
   changes stay when you update?
 * Kadence Themes
 *  Thread Starter [Dddt](https://wordpress.org/support/users/dddt/)
 * (@dddt)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/full-width-posts-virtue-theme/#post-4776883)
 * No, I have not, where from should I install it?
 *  [Ben Ritner – Kadence WP](https://wordpress.org/support/users/britner/)
 * (@britner)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/full-width-posts-virtue-theme/#post-4776884)
 * [http://codex.wordpress.org/Child_Themes](http://codex.wordpress.org/Child_Themes)
 *  Thread Starter [Dddt](https://wordpress.org/support/users/dddt/)
 * (@dddt)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/full-width-posts-virtue-theme/#post-4776885)
 * ooo, I need to create it 🙂 , thank u very much!
 *  Thread Starter [Dddt](https://wordpress.org/support/users/dddt/)
 * (@dddt)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/full-width-posts-virtue-theme/#post-4776935)
 * so, I have created a child theme, wp-content/themes/virtue-child then xreated
   a functions.php and now I have the following code in it
 *     ```
       <?php add_filter('kadence_display_sidebar', 'kad_sidebar_on_post');
       function kad_sidebar_on_post($sidebar) {
         if (is_single()) {
           return false;
         }
         return $sidebar;
       } ?>
       ```
   
 * but this did not make the post full width they are in the same width as before,
   I followed the steps through the link u shared, hope I’ve done everything correct.
 * thanks
 *  [Ben Ritner – Kadence WP](https://wordpress.org/support/users/britner/)
 * (@britner)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/full-width-posts-virtue-theme/#post-4776945)
 * Can you send me a login I’ll take a look.
 * [Ben@kadencethemes.com](https://wordpress.org/support/topic/full-width-posts-virtue-theme/Ben@kadencethemes.com?output_format=md)
 *  Thread Starter [Dddt](https://wordpress.org/support/users/dddt/)
 * (@dddt)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/full-width-posts-virtue-theme/#post-4776953)
 * Login to server?
 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [12 years, 1 month ago](https://wordpress.org/support/topic/full-width-posts-virtue-theme/#post-4776954)
 * > Login to server?
 * Hopefully not! That’s really discouraged.
 * _*Reads thread*_
 * Kadence Themes? You really _do not need a login_ for this one. That’s a shortcut
   and you do not want to be responsible for Dddt’s installation that way.
 * **[@dddt](https://wordpress.org/support/users/dddt/)?** Can you provide a link
   to your site?
 *  [Ben Ritner – Kadence WP](https://wordpress.org/support/users/britner/)
 * (@britner)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/full-width-posts-virtue-theme/#post-4776955)
 * Dddt and I have emailed in the past. I don’t have to help as this is about customizing
   a child theme and I’ve provided the correct code already. It’s an offer. Not 
   a issue that needs to be fixed.
 * My suggestion was to take a look at your wordpress admin. Not cpanel or any other
   server login.
 * Kadence Themes
 *  [Ben Ritner – Kadence WP](https://wordpress.org/support/users/britner/)
 * (@britner)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/full-width-posts-virtue-theme/#post-4776956)
 * P.S. Jan if you have a better way for me to look at what he put in the functions
   file of his child theme I’m all ears.
 * Kadence Themes

Viewing 15 replies - 1 through 15 (of 45 total)

1 [2](https://wordpress.org/support/topic/full-width-posts-virtue-theme/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/full-width-posts-virtue-theme/page/3/?output_format=md)
[→](https://wordpress.org/support/topic/full-width-posts-virtue-theme/page/2/?output_format=md)

The topic ‘Full width posts – virtue theme’ is closed to new replies.

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

 * 45 replies
 * 7 participants
 * Last reply from: [Ben Ritner – Kadence WP](https://wordpress.org/support/users/britner/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/full-width-posts-virtue-theme/page/3/#post-4777064)
 * Status: not resolved