Title: How do I remove margin-bottom?
Last modified: August 21, 2016

---

# How do I remove margin-bottom?

 *  [Marcoevich](https://wordpress.org/support/users/marcoevich/)
 * (@marcoevich)
 * [13 years ago](https://wordpress.org/support/topic/how-do-i-remove-margin-bottom/)
 * Hi all,
 * In the sourcecode of my page, there is some CSS inserted, but I don’t know where
   that comes from.
 * I want to set this margin to 0: .panel-grid-cell .panel { margin-bottom: 30px}
 * Where do I change this?
 * Thx in advance 🙂
 * [http://wordpress.org/extend/plugins/siteorigin-panels/](http://wordpress.org/extend/plugins/siteorigin-panels/)

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

 *  Plugin Author [Greg – SiteOrigin](https://wordpress.org/support/users/gpriday/)
 * (@gpriday)
 * [13 years ago](https://wordpress.org/support/topic/how-do-i-remove-margin-bottom/#post-3792730)
 * If you want to change the bottom margin for all the widgets you add, you can 
   use the following code to your theme’s functions.php. Preferably within a function
   hooked to after_setup_theme
 *     ```
       add_theme_support( 'siteorigin-panels', array(
       	'margin-bottom' => 30,
       	'responsive' => true,
       ) );
       ```
   
 * You can use this to change the bottom margin to what ever you’d like. So change
   that 30 to 0.
 *  Thread Starter [Marcoevich](https://wordpress.org/support/users/marcoevich/)
 * (@marcoevich)
 * [13 years ago](https://wordpress.org/support/topic/how-do-i-remove-margin-bottom/#post-3792732)
 * ok thx Greg, looks like a simple solution 🙂
 * One more thing, I’d like an extra margin-top for the first panel grid. How would
   you achieve that? I searched for a .panel-grid-first-child, but I can’t find 
   that in the source.
 *  Plugin Author [Greg – SiteOrigin](https://wordpress.org/support/users/gpriday/)
 * (@gpriday)
 * [13 years ago](https://wordpress.org/support/topic/how-do-i-remove-margin-bottom/#post-3792747)
 * You could add a top margin for the #pg-0 selector. pg-* are the ids for the grids.
   The first grid has an index of 0.
 * I haven’t tried it, but you could possibly use this plugin to add the CSS [http://wordpress.org/plugins/per-post-scripts-and-styles/](http://wordpress.org/plugins/per-post-scripts-and-styles/)
 *  Thread Starter [Marcoevich](https://wordpress.org/support/users/marcoevich/)
 * (@marcoevich)
 * [13 years ago](https://wordpress.org/support/topic/how-do-i-remove-margin-bottom/#post-3792748)
 * Well, I have just raised the padding of my entire container, could do this with
   no problem because I wanted to add margin to the first grid panel 🙂
 * But your solution will definitely become handy for other pages. And thx for that
   plugin! I will definitely give that one a try 🙂
 *  [suziebou](https://wordpress.org/support/users/suziebou/)
 * (@suziebou)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/how-do-i-remove-margin-bottom/#post-3792932)
 * This has not worked for me and I still can not change the margin-bottom from 
   35px.
 * On the setting page, every time I save the margin-botton to 5px it reverts back
   to the original 35px.
 * Please see for details [](http://www.suziebou.co.uk/vantage_error.png)
 *  Thread Starter [Marcoevich](https://wordpress.org/support/users/marcoevich/)
 * (@marcoevich)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/how-do-i-remove-margin-bottom/#post-3792933)
 * Try using the code from the 2nd post and place it in your functions.php
 *  [suziebou](https://wordpress.org/support/users/suziebou/)
 * (@suziebou)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/how-do-i-remove-margin-bottom/#post-3792934)
 * I have tried that and its not working.
 *  [shwartsdesign](https://wordpress.org/support/users/shwartsdesign/)
 * (@shwartsdesign)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/how-do-i-remove-margin-bottom/#post-3792936)
 * I have the same problem. I’m trying to set the margin-bottom of the panel to 
   0, with no success. Every time I try to change it in the settings panel it reverts
   to 35. What’s up with that? Why even have the field there if we can’t change 
   it. The code
 *     ```
       add_theme_support( 'siteorigin-panels', array(
       	'margin-bottom' => 30,
       	'responsive' => true,
       ) );
       ```
   
 * offered by Greg doesn’t work for me. But, I may have put it in the wrong place,
   seeing as I’m not a PHP expert. Here’s where I’ve put it.
 *     ```
       add_action( 'after_setup_theme', 'vantage_setup' );
   
       /**
        * Setup the WordPress core custom background feature.
        *
        * @since vantage 1.0
        */
       function vantage_register_custom_background() {
   
       	if(siteorigin_setting('layout_bound') == 'boxed') {
       		$args = array(
       			'default-color' => 'e8e8e8',
       			'default-image' => '',
       		);
   
       		$args = apply_filters( 'vantage_custom_background_args', $args );
       		add_theme_support( 'custom-background', $args );
       		add_theme_support( 'siteorigin-panels', array(
       	'margin-bottom' => 0,
       	'responsive' => true,
       ) );
       	}
   
       }
       ```
   
 * If I’ve put it in the wrong place, please let me know. I am using Vantage.
 *  Plugin Author [Greg – SiteOrigin](https://wordpress.org/support/users/gpriday/)
 * (@gpriday)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/how-do-i-remove-margin-bottom/#post-3792937)
 * My current development version of Vantage and Page Builder has an option to remove
   the bottom margin from within Page Builder itself. No code edits required. Both
   updates should be coming next week.
 * Hopefully this will make life a little easier 🙂
 *  [DynamixPH](https://wordpress.org/support/users/dynamixph/)
 * (@dynamixph)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/how-do-i-remove-margin-bottom/#post-3792939)
 *     ```
       .panel-grid-cell
       padding: 0 15px 0 15px
       ```
   
 * I want the padding to be “`padding: 0 4px 0 4px`“
 * Also, the youtube embed? what do I add to the youtube vid URL to remove the frames
   etc.
 * How to do this Greg?
    You may check iwantproof.com.ph
 * Big thanks!

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

The topic ‘How do I remove margin-bottom?’ is closed to new replies.

 * ![](https://ps.w.org/siteorigin-panels/assets/icon.svg?rev=2556869)
 * [Page Builder by SiteOrigin](https://wordpress.org/plugins/siteorigin-panels/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/siteorigin-panels/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/siteorigin-panels/)
 * [Active Topics](https://wordpress.org/support/plugin/siteorigin-panels/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/siteorigin-panels/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/siteorigin-panels/reviews/)

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [margin-bottom](https://wordpress.org/support/topic-tag/margin-bottom/)

 * 10 replies
 * 5 participants
 * Last reply from: [DynamixPH](https://wordpress.org/support/users/dynamixph/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/how-do-i-remove-margin-bottom/#post-3792939)
 * Status: not resolved