astra_post_class_blog_grid( array $classes )
Adds custom classes to the array of post grid classes.
Description
Parameters
- $classes
-
(array) (Required) Classes for the post element.
Return
(array)
Source
File: inc/blog/blog.php
function astra_post_class_blog_grid( $classes ) { if ( is_archive() || is_home() || is_search() ) { $classes[] = astra_attr( 'ast-blog-col' ); $classes[] = 'ast-article-post'; } return $classes; }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
1.0 | Introduced. |