Changing the CSS Classes

Changing the CSS Content

Remember the filter on the class attributes for section, row, and columns from Modifying the HTML Output? Well you are free to add your own custom classes to each of these. 

Note that the following classes MUST NOT be removed. 

  • js-plato-hook-section-classes
  • js-plato-hook-row-classes
  • js-plato-hook-column-classes

Adding Section classes

add_filter('plate_content_section_default_classes', function($classes){ 
$classes = explode(' ', $classes);
$classes[] = 'container';
return implode(' ', $classes);
}, 30);

Adding Row classes

add_filter('plate_content_row_default_classes', function($classes){ 
$classes = explode(' ', $classes);
$classes[] = 'row';
return implode(' ', $classes);
}, 30);

Adding Column classes

add_filter('plate_content_column_default_classes', function($classes){ 
$classes = explode(' ', $classes);
$classes[] = 'col';
return implode(' ', $classes);
}, 30);