Page Builder: Remove Default Layout Options
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.
Need fast email support? Get SiteOrigin Premium
Replies
2Hi 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.
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.