Hi,
First I’d like to thank you for this amazing plugin!
I’m not sure if this is a bug or a feature, but the issue below happens since a recent update, I think it has something to do with v2.4.24, with this change:
– Add row ID to style wrapper instead of actual row.
When I add a CSS class to a row, it is applied to div.panel-row-style (that wrapper element is otherwise not added), before the update it was also added to div.panel-grid. This new functionality is fine and logical.
However, when I add a custom default CSS class for all rows, like this:
add_filter('siteorigin_panels_row_classes', function($classes) { return array_merge($classes, ['my-custom-class']); });
Then the class is only added to div.panel-grid, and no div.panel-row-style wrapper is created.
Is this intentional?
Or is it in any way possible to create a div.panel-row-style wrapper at all times?
Kind regards,
Sybren Dijkstra
Hi Sybren,
What you previously experienced shouldn’t have been happening. The panel-grid class is purely a container and all interface styling (and the class) should be applied to the panel-row-styles class so it’s really odd that it was applying to panel-grid previously for you. Not too sure.
Regarding the filters however, that makes sense. To clarify:
siteorigin_panels_row_classes is intended for the container class. (ie. panel-grid)
siteorigin_panels_row_style_attributes is intended for the styling container. (ie. panel-row-style)
Hello Alex,
Thanks for clarifying! I’ll use the proper filter then.
And about what happened previously, is a little embarrassing.. it was a bit of JavaScript I totally forgot about, that did that. Sorry!