Home>Support>Page Builder: Remove Default Layout Options

Page Builder: Remove Default Layout Options

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

Is there a hook / filter to remove all the default Row Styles? We have some custom options which are all the changes users need to make.

Is there a standard way to deactivate these, or should we unset all the fields using `siteorigin_panels_row_style_fields`?

Are there any fields we shouldn’t unset?

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

  1. 10 years, 1 month ago Greg Priday
    Hi, I Work Here

    Hi Tarei

    I haven’t actually thought to much about how to disable all this default stuff. Are you planning on implementing your own set of row styles?

    Your idea of unsetting all the fields you don’t want will work. Another option would be to use remove_filter to remove all the filters created in the SiteOrigin_Panels_Default_Styling class in inc/default-styles.php. You could probably remove these filters on the after_setup_theme action.

  2. 10 years, 1 month ago Tarei King

    Hi Greg,

    Yes, rolling our own set of row Styles. I ended up unsetting all the fields, but will likely remove_filter as you suggested. Just wanted to make sure we weren’t gonna run into trouble after unsetting the fields.

    function remove_default_so_row_styles( $fields ) {
    	unset( $fields );
    	return;
    }
    add_filter( 'siteorigin_panels_row_style_fields', 'remove_default_so_row_styles', 11 );
    
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