Preprocess paragraphs

Public

Warning message

We recommend you to assign at least one category to this snippet so you could easily navigate it in the future. Edit your snippet here.

Preprocess paragraphs module

</> CopyGet raw version
php
  1. <?php
  2. function yourtheme_preprocess_paragraphs_items(&$vars, $hook) {
  3.  
  4. // This will remove all the current classes
  5. $vars['classes_array'] = "";
  6.  
  7. // You can now add the classes you want in this array
  8. $vars['classes_array'][] = "paragraphsWrapper paragraphsWrapperStyleLead";
  9. }
  10. ?>