Filter: bricks/support_masonry_element
Filter: bricks/support_masonry_element
Section titled “Filter: bricks/support_masonry_element”Filters the list of element names that support the Masonry layout option. By default, this includes section, container, block, and div.
Parameters
Section titled “Parameters”$element_names(array): Array of element names (slugs) that support Masonry.
Example usage
Section titled “Example usage”add_filter( 'bricks/support_masonry_element', function( $element_names ) { // Enable Masonry support for a custom element $element_names[] = 'my-custom-grid';
return $element_names;} ); Was this page helpful?