Home>Support>Need remove empty inline style code in header part

Need remove empty inline style code in header part

Hello Team,

Let me know how to remove empty inline style code in header part.

#wpadminbar { display:none; }
/* Layout 43 */ #pgc-43-0-0 { width:100%;width:calc(100% – ( 0 * 30px ) ) } #pl-43 .so-panel { margin-bottom:30px } #pl-43 .so-panel:last-child { margin-bottom:0px } #pg-43-0.panel-no-style, #pg-43-0.panel-has-style > .panel-row-style { -webkit-align-items:flex-start;align-items:flex-start } @media (max-width:780px){ #pg-43-0.panel-no-style, #pg-43-0.panel-has-style > .panel-row-style { -webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column } #pg-43-0 > .panel-grid-cell , #pg-43-0 > .panel-row-style > .panel-grid-cell { width:100%;margin-right:0 } #pg-43-0 { margin-bottom:px } #pl-43 .panel-grid-cell { padding:0 } #pl-43 .panel-grid .panel-grid-cell-empty { display:none } #pl-43 .panel-grid .panel-grid-cell-mobile-last { margin-bottom:0px } #pg-43-0> .panel-row-style { padding:0px 0px 0px 0px } }

Isssue is this:
#pg-43-0 { margin-bottom:px }

I try below hook but it not work:
function siteorigin_panels_remove_inline_css(){
remove_action( ‘wp_head’, ‘siteorigin_panels_print_inline_css’, 12 );
remove_action( ‘wp_footer’, ‘siteorigin_panels_print_inline_css’ );
}
add_action( ‘init’, ‘siteorigin_panels_remove_inline_css’, 10, 2 );

Please help me how to fixed this issue.

Thanks,
Jayesh

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

  1. 3 years, 9 months ago Andrew Misplon
    Hi, I Work Here

    Hi Jayesh

    Thanks for reaching out.

    In order to not disrupt existing layouts, we, unfortunately, can’t prevent Page Builder from printing a 0 value for bottom margins. However, by default, Page Builder will print 0px. My guess is that you’re using a minification plugin which is removing the 0. If you are using a minification plugin you can look at the settings for that plugin and look into excluding Page Builder CSS from the minification process and thereby maintain the 0px which is valid CSS.

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