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].
I want to remove or change the right hand “Widget Styles” column on a specific widget. I know it can be targetted by using:
add_filter( ‘siteorigin_panels_widget_style_fields’, ‘__return_false’, 11 );
But this removes the style column for all widgets not just one.
Any help will be appreciated.
Rob
Hi Rob
That’s a good point. At the moment there isn’t a way for a widget to remove its own style fields. There should be a way though. I’ve logged this as an issue on Github. You can keep track of it there.
https://github.com/siteorigin/siteorigin-panels/issues/159
Many Thanks Greg, in fact I think I may have seen you post this when I was searching.
If each widget form had a class you would be able to target each list item or the whole list and set display:none; without having to create hooks etc.
A work around would be to edit those options from the plugin but I can’t seem to work out the filter hook.
In default-styles.php there is this filter hook:
For this function:
I want to change:
Is there any way to do this? Set the style attributes from the widget?
Thanks again
Rob