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 - 16 through 30 (of 45 total)

[←](https://wordpress.org/support/topic/full-width-posts-virtue-theme/?output_format=md)
[1](https://wordpress.org/support/topic/full-width-posts-virtue-theme/?output_format=md)
2 [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/3/?output_format=md)

 *  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/page/2/#post-4776957)
 * I appreciate that and know you’re only helping your user. Honest, your support
   has always been first rate and really good.
 * But let’s see if we can walk Dddt through it before you get to that step.
 *  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/page/2/#post-4776960)
 * You did magic!!!!! Thank you soooooo much for your great help! You are professional,
   you are kind, you are prompt !
 * P.S. I more than trust Ben, and if he asks login for my cpanel I will give him!
 * This topic is closed 🙂 thanks to Ben!
 *  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/page/2/#post-4776961)
 * I’m glad you got it all sorted out. That’s cool and isn’t it great when it works
   out like that?
 * > 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.
 * Perk your ears up then. 😉
 * That’s easy and always has been. For small code snippets anyone can post using
   the backtick or code button.
 * [http://codex.wordpress.org/Forum_Welcome#Posting_Code](http://codex.wordpress.org/Forum_Welcome#Posting_Code)
 * For large code blocks (more than 50 lines is definitely large) any user can use
   [pastebin.com](http://pastebin.com/) and post that link.
 * Here’s a mundane example.
 * [http://pastebin.com/y32zKFuX](http://pastebin.com/y32zKFuX)
 * It’s just not that hard to walk someone through sharing file contents.
 * Asking for login access isn’t a new topic and has been discussed before. Give
   this make/support post a read on that topic.
 * > [Support Team Update for February 27th](https://make.wordpress.org/support/2014/02/support-team-update-for-february-27th/)
 * It’s the part labeled “Code authors jumping straight to requesting admin access”
   and it really is applicable to theme authors too.
 * _Please note that I am not trying to wind you up or discourage you from supporting
   your themes here._ I’m simply explaining that you do not need login access to
   resolve a theme issue such as this.
 *  [Rose and Josiah](https://wordpress.org/support/users/rpyles/)
 * (@rpyles)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/full-width-posts-virtue-theme/page/2/#post-4777025)
 * Thanks! This is exactly what I was looking for in terms of that addition to the
   child theme function file. I appreciate it!
 *  [waldbach](https://wordpress.org/support/users/waldbach/)
 * (@waldbach)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/full-width-posts-virtue-theme/page/2/#post-4777026)
 * Thanks a lot, this worked a charm for me! 🙂
 * Just a note: Make sure to lose
    `<?php` at the beginning and `?>` at the end 
   if there’s already code in your child theme’s functions.php, because that messed
   mine up as i just copy/pasted without checking. 😉
 *     ```
       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)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/full-width-posts-virtue-theme/page/2/#post-4777035)
 * hi again,
    i need to do this for my new website, i copied the function.php and
   style.css from my old virtue child theme and placed it under the new website’s
   child theme, but this is not working, what magic did u do last time that worked
   for my old website, can u help me please?
 * thanks
 *  [waldbach](https://wordpress.org/support/users/waldbach/)
 * (@waldbach)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/full-width-posts-virtue-theme/page/2/#post-4777036)
 * Don’t copy the functions.php file, instead make a new empty one in your child
   theme, it will add to the functions in the theme’s directory. (or override it)
 *  Thread Starter [Dddt](https://wordpress.org/support/users/dddt/)
 * (@dddt)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/full-width-posts-virtue-theme/page/2/#post-4777037)
 * did not help 🙁
 *  [Ben Ritner – Kadence WP](https://wordpress.org/support/users/britner/)
 * (@britner)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/full-width-posts-virtue-theme/page/2/#post-4777038)
 * Dddt,
    Can you explain? Each post as the option to disabled the sidebar. why 
   not use that?
 * If you want to override with a function can you post here what is in your functions
   file?
 * Kadence Themes
 *  Thread Starter [Dddt](https://wordpress.org/support/users/dddt/)
 * (@dddt)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/full-width-posts-virtue-theme/page/2/#post-4777039)
 * Hi there!
    Explaining: the reason is the same, I want to make it possible front-
   end posting and n=the user will not have access to back-end to change the post
   settings.
 * here is the function
 * <?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)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/full-width-posts-virtue-theme/page/2/#post-4777040)
 * That function should work just fine. Your wanting to remove the sidebar right?
 * Is there anything else in your child theme functions?
 * Do you have the child theme activated.
 * Kadence Themes
 *  Thread Starter [Dddt](https://wordpress.org/support/users/dddt/)
 * (@dddt)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/full-width-posts-virtue-theme/page/2/#post-4777041)
 * yes, remove sidebar.
 * in my fuctions.php only this:
 * <?php add_filter(‘kadence_display_sidebar’, ‘kad_sidebar_on_post’);
    function
   kad_sidebar_on_post($sidebar) { if (is_single()) { return false; } return $sidebar;}?
   >
 * In my child theme I also have style.css
 * /*
    Theme Name: Virtue – Child Theme Theme URI: [http://kadencethemes.com/product/virtue-free-theme/](http://kadencethemes.com/product/virtue-free-theme/)
   Version: 1.0 Author: Kadence Themes Author URI: [http://kadencethemes.com/](http://kadencethemes.com/)
   Template: virtue */
 * /* Theme customization starts here
    ————————————————————– */
 * what u mean by child theme activated? how can i check it is active or not?
 *  [Ben Ritner – Kadence WP](https://wordpress.org/support/users/britner/)
 * (@britner)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/full-width-posts-virtue-theme/page/2/#post-4777042)
 * When you click on appearance > themes is “virtue – child theme” activated.
 * Can you post a link to the site.
 * Kadence Themes
 *  Thread Starter [Dddt](https://wordpress.org/support/users/dddt/)
 * (@dddt)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/full-width-posts-virtue-theme/page/2/#post-4777043)
 * When I click appearance-themes I see virtue theme is activated, I cannot find
   virtue child theme there.
 * I would not like to post the site here, sorry 🙁
 *  [hannah](https://wordpress.org/support/users/hannahritner/)
 * (@hannahritner)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/full-width-posts-virtue-theme/page/2/#post-4777044)
 * [@dddt](https://wordpress.org/support/users/dddt/), you need to upload your child
   theme. Go to appearance > themes > add new and upload and activate.
 * Hannah

Viewing 15 replies - 16 through 30 (of 45 total)

[←](https://wordpress.org/support/topic/full-width-posts-virtue-theme/?output_format=md)
[1](https://wordpress.org/support/topic/full-width-posts-virtue-theme/?output_format=md)
2 [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/3/?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