I agree, it would be great to have more control on the classes of a col (or even a widget).
Currently i enhance some of my widgets with typeable css-classes, but i would love to see a solution prebuild in page-builder.
Also a way to type the percentage of a col in addition to drag-n-drop would be nice 😉
You did a amazing job on develop and share this plugin. Thanks a lot!
If you need any help on implementation, let me know.
Hi,
I’ve found a solution for that – at least until PB has really fields for that.
You can set a visual style in each grid. With this code you can add options to the dropdown:
function mytheme_panels_row_styles($styles) {
$styles['full-width'] = __('Full Width', 'vantage');
return $styles;
}
add_filter('siteorigin_panels_row_styles', 'mytheme_panels_row_styles');
And with this filter you can add it to the panel-grid class-attribute:
add_filter('siteorigin_panels_row_classes', 'siteorigin_panels_row_add_class',10,2);
function siteorigin_panels_row_add_class($classes,$visual_style)
{
if(isset($visual_style['style']['class'])) $classes[] = $visual_style['style']['class'];
return $classes;
}
Its not perfect, but an option.
hi redmarketing,
hey thats cool. Would be great if there where also col or widget styles. But its a start.
thanks for sharing
The classes on the panels are much needed! Thanks for the quick solutions above.