Astra_Edd::render_post_class( array $classes )

Remove theme post’s default classes when EDD archive.


Description


Parameters

$classes

(array) (Required) Post Classes.


Return

(array)


Source

File: inc/compatibility/edd/class-astra-edd.php

		public function render_post_class( $classes ) {
			$post_class = array( 'ast-edd-archive-article' );
			$result     = array_intersect( $classes, $post_class );

			if ( count( $result ) > 0 ) {
				$classes = array_diff(
					$classes,
					array(
						// Astra common grid.
						'ast-col-sm-12',
						'ast-col-md-8',
						'ast-col-md-6',
						'ast-col-md-12',

						// Astra Blog / Single Post.
						'ast-article-post',
						'ast-article-single',
						'ast-separate-posts',
						'remove-featured-img-padding',
						'ast-featured-post',
					)
				);
			}
			return $classes;
		}

Changelog

Changelog
Version Description
1.5.5 Introduced.

User Contributed Notes

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