Snippet: Alter and/or Add Classes To The Portfolio Archives Grid
function my_wpex_portfolio_wrap_classes( $classes ) {
$classes[] = 'gap-40'; // Add a 40 pixel gab between items
return $classes;
}
add_filter( 'wpex_portfolio_wrap_classes', 'my_wpex_portfolio_wrap_classes' );
All PHP snippets should be added via child theme's functions.php file or via a plugin.
We recommend Code Snippets (100% Free) or WPCode (sponsored)
We recommend Code Snippets (100% Free) or WPCode (sponsored)