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].
Hey there,
Thanks for the plugin. I couldn’t find any related posts, but I’m trying to deactivate widget styles altogether. Anything I can hook into?
Cheers!
Noel
Hi there Noel
Interesting use case, I hadn’t actually thought about this before. All the widget style fields are passed through the siteorigin_panels_widget_style_fields action, so you can filter everything out there.
https://github.com/siteorigin/siteorigin-panels/blob/develop/inc/default-styles.php#L25
I haven’t tested it, but it should handle having all these styling options stripped out.
Next, there are the style groups. For widgets, the filter is siteorigin_panels_widget_style_groups
https://github.com/siteorigin/siteorigin-panels/blob/develop/inc/styles.php#L71
Again, I assume Page Builder will handle having these stripped out. Although one thing we should do is make the sidebar disappear when there aren’t any style fields or groups.
Hope that answers your question.
Hey Greg,
Thank you for that response, very helpful (as well as jumping on https://github.com/siteorigin/so-widgets-bundle/pull/64).
To help explain the use-case more; we’re running a multisite with 130 blogs and 15M+ pageviews/month. We’ve streamlined many design elements and have a full loadout of DFP running. If we give users the option to style anything, they’ll like end up breaking multiple components (of which ads/DFP is the most important). In that regard, we view page builder’s responsibility as facilitating content placement/layout. Anything else (i.e. styles) overlaps with other parts of the site. Given the size of the platform, it’s likely a rare use case, so I’m certainly not expecting an option setting (though by removing the style options from my side, I’m considering making the modal a lot smaller).
Cheers!
Noel
Hi Noel
Very awesome! Happy to hear you’re going with Page Builder for this network. I’d be happy to help you guys with any other customisation work you need to do. At very least point you in the right direction.
As for cutting out the styling – yeah, I agree with you. Looking back I wish we’d limited the number of styling options available or made themes specifically opt in to the styling options. We’ve run into some issues with some themes having CSS that’s more specific than the style CSS we’re using. So some of the styling options flat out don’t work with certain themes.
The row background and general layout options (gutter, margins, etc) have been useful – but again, those could have been opt in for themes.
Would love to hear how you guys go with this network.
Hey Greg!
Thanks for your answer. I’ve just done this now for the site Noel and I are working on.
It worked a treat!
I just thought I’d let you know in case anyone else asks for this. Making the sidebar disappear would be a great feature to add for this. Now that I’ve seen these filters in action we’ll probably use those more on client sites that use Page Builder to limit some of the control.
Thanks again for being super fast to reply both on the forums and on Github!
Have a good weekend!
Only too happy to help Bronson. Thanks for letting me know this works – I really wasn’t too sure it would.
I’ve logged hiding the sidebar as an issue on Github (borrowed your screenshot too), hopefully we’ll get this sorted in the new year.
https://github.com/siteorigin/siteorigin-panels/issues/132