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;
	}

Changelog

Changelog
Version Description
1.0 Introduced.


User Contributed Notes

You must log in before being able to contribute a note or feedback.