Home>Support>How to override top margin style

How to override top margin style

Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

style=”padding 100px 0″ is INCLUDED in raw plugin oputput as TOP MARGIN for the siteorgin panels .. WHY???? It cannot be overriden with any CSS – you either give a decent good free version or I will take it to court for deceptive marketing XD

Please show a fix .. either CSS or php

R

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 6 years, 3 months ago Alex S
    Hi, I Work Here

    Hi Rom,

    We apply 35px of bottom margin to each row. This setting can be globally adjusted by navigating to WP AdminSettingsPage Builder and open the Layout tab. Adjust the Row/Widget Bottom Margin as desired. Outside of that, no other spacing is applied by us to rows automatically.

    Are you using Sydney by aThemes? I ask as rows added while using Sydney will automatically have 100px of top and bottom applied to each row. You’ll need to reach out to them for assistance with preventing this.

    If you’re not using this theme, do you have a public URL where we can take a look at your setup? This will allow us to work out what is adding this spacing.

  2. 6 years, 3 months ago Rom Ulan

    I am using Perth from aThemes – cannot find anything in settings
    Cannot publicize the dev server either

    YOUR CODE IS UP TO PAR you are right perth has the same issue

    here is the troublesome snippet
    in their file /themes/perth/inc.builder.php

    if(!empty($style['padding'])) {
    		$attr['style'] .= 'padding: ' . esc_attr($style['padding']) . ' 0; ';
    	} else {
    		$attr['style'] .= 'padding: 100px 0; ';
    	}

    on like 154 it assigns 100px if there is no style attribute set – and the theme doesn’t seem to have an option to set TOP margin in WordPress interactively

    I have changed the line 154 to

    		$attr['style'] .= 'padding: 0 0; ';

    I have no better solution for now — remember that each update fo theme will wipe your PHP changes

    Thanks for a quick response Alex S !!!!!

    R

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More