I’m creating some widgets based on the Extend Widget Bundle and am looking for a way to remove some classes from the grid html output without modifying the siteorigin-panels plugin code. My goal is to replace the Panels grid system with one I’m currently helping develop.
The classes I’d like to remove are ‘panel-grid’ and ‘panel-grid-cell’.
So far I’ve been able to add options fields to rows using custom_row_style_fields that lets users select a pre-defined layout. The classes for the custom grid are then added using the siteorigin_panels_row_cell_classes filter.
I’m unsure how to remove the ‘panel-grid’ class at this point.
Is this possible using filters? I’ve seen several questions around similar issues on the support forum but haven’t figured this out yet. :)
Thanks for creating and sharing all of your helpful plugins!
Hi Matthew,
The hooks you’re looking for are siteorigin_panels_row_classes and siteorigin_panels_row_cell_classes.
For reference, here’s the exact lines, both found in this file. Here’s the lines:
siteorigin_panels_row_classes
siteorigin_panels_row_cell_classes
Links are current as of posting, can’t promise they will be in the future however so I’ve included the exact line contents for reference also.
This is a private message.
This is a private message.