Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author SiteOrigin

    (@gpriday)

    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

    (@marcoevich)

    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 SiteOrigin

    (@gpriday)

    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 https://www.ads-software.com/plugins/per-post-scripts-and-styles/

    Thread Starter Marcoevich

    (@marcoevich)

    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 ??

    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

    Thread Starter Marcoevich

    (@marcoevich)

    Try using the code from the 2nd post and place it in your functions.php

    I have tried that and its not working.

    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 SiteOrigin

    (@gpriday)

    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 ??

    .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.