Skip to content

Snippet: Custom Blog Style

/**
 * Alter blog style
 * You can return any of the following strings "large-image-entry-style", "thumbnail-entry-style", "grid-entry-style"
 *
 */
function my_blog_style( $style ) {

	// Change style for all tags
	if ( is_tag() ) {
		$style = 'thumbnail-entry-style';
	}

	// Return style
	return $style;
	
}
add_filter( 'wpex_blog_style', 'my_blog_style' );
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)
Back To Top