Title: Decrease the Width of Sidebars
Last modified: August 30, 2016

---

# Decrease the Width of Sidebars

 *  Resolved [darshan_cool](https://wordpress.org/support/users/darshan_cool/)
 * (@darshan_cool)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/decrease-the-width-of-sidebars-2/)
 * Hey Guys I am Using Child Theme of Generatepress.
    i wanted to reduce the width
   of sidebars & Increase the Width of Main Content Area. Please Help Me

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

 *  [Bojan Radonic – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support4/)
 * (@wpmudev-support4)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/decrease-the-width-of-sidebars-2/#post-6224676)
 * Hey there darshan_cool,
 * Hope you’re well today!
 * Since you already have child theme up and running please try adding the following
   code to your child theme style.css:
 *     ```
       @media (min-width: 769px) {
       .grid-75 {
         width: 80%;
       }
       .grid-25 {
         width: 20%;
       }
       }
       ```
   
 * This should reduce the width of the sidebars and increase the width of your content
   area. The original values are 75% for content and 25% for sidebar, you can play
   with the numeric values to set it up to what ever suits you the most.
 * If the code doesn’t work please keep it added and post link to your site so I
   can take a look 🙂
 * Hope this helps!
 * Cheers,
    Bojan
 *  Thread Starter [darshan_cool](https://wordpress.org/support/users/darshan_cool/)
 * (@darshan_cool)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/decrease-the-width-of-sidebars-2/#post-6224686)
 * Hey Thnx for the reply but Unfortunately it dint worked 🙁
    Here is my Site [http://www.jainsamay.com](http://www.jainsamay.com)
   u c the left sidebar, i want to reduce the white thing which is appearing near
   my Images. thanx. Waiting for your Reply…. Darshan
 *  Theme Author [Tom](https://wordpress.org/support/users/edge22/)
 * (@edge22)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/decrease-the-width-of-sidebars-2/#post-6224716)
 * It’s actually much easier to use our built in filters.
 * For example:
 *     ```
       add_filter( 'generate_right_sidebar_width','generate_custom_right_sidebar_width' );
       function generate_custom_right_sidebar_width()
       {
             // 25 being 25% - increase or decrease by 5%
             return '25';
       }
   
       add_filter( 'generate_left_sidebar_width','generate_custom_left_sidebar_width' );
       function generate_custom_left_sidebar_width()
       {
             // 25 being 25% - increase or decrease by 5%
             return '25';
       }
       ```
   
 * You can also use our Spacing add-on to define the size of your sidebars using
   the Customizer if you’re not comfortable with PHP.
 * Hope this helps 🙂
 *  Thread Starter [darshan_cool](https://wordpress.org/support/users/darshan_cool/)
 * (@darshan_cool)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/decrease-the-width-of-sidebars-2/#post-6224753)
 * where to put these Code ????????
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [10 years, 11 months ago](https://wordpress.org/support/topic/decrease-the-width-of-sidebars-2/#post-6224754)
 * Create a ‘functions.php’ file in your child theme if it doesn’t already exist,
   then put it in there. At the bottom, before the `?>` tag (if that’s there).
 *  Thread Starter [darshan_cool](https://wordpress.org/support/users/darshan_cool/)
 * (@darshan_cool)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/decrease-the-width-of-sidebars-2/#post-6224758)
 * Thanx Guys [@tom](https://wordpress.org/support/users/tom/) & [@andrew](https://wordpress.org/support/users/andrew/)
   for your Help :))
    Be Supporting Alwayz …… Best Wishes Darshan from INDIA
 *  Theme Author [Tom](https://wordpress.org/support/users/edge22/)
 * (@edge22)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/decrease-the-width-of-sidebars-2/#post-6224760)
 * Happy to help! 🙂
 *  [vadim-v](https://wordpress.org/support/users/vadim-v/)
 * (@vadim-v)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/decrease-the-width-of-sidebars-2/#post-6224880)
 * Thanks)
    I was hoping that it would be in the theme settings. But if you can 
   not, and thank you for it!

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

The topic ‘Decrease the Width of Sidebars’ is closed to new replies.

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

 * 8 replies
 * 5 participants
 * Last reply from: [vadim-v](https://wordpress.org/support/users/vadim-v/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/decrease-the-width-of-sidebars-2/#post-6224880)
 * Status: resolved