This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Need remove empty inline style code in header part

5 years ago · Last reply by Andrew Misplon 5 years ago

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.

Need fast email support? Get SiteOrigin Premium

Replies

1
  1. Andrew Misplon Staff 5 years, 3 months ago

    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.

Have a different question or issue?

Start New Thread