Instantly share code, notes, and snippets.

Embed
What would you like to do?
Update the featured images size from Astra.
<?php
/**
* Update the featured images size from Astra
*/
add_filter( 'astra_post_thumbnail_default_size', 'update_featured_images_size_callback' );
function update_featured_images_size_callback( $size ) {
$size = array( 500, 500 ); // Update the 500(Width), 500(Height) as per your requirment.
return $size;
}
@rushijagani

This comment has been minimized.

Owner

rushijagani commented Jul 20, 2018

Add Following CSS to make the featured image align right with the content.
Please selcet the Blog Post Structure as this from Astra Customizer setting --
chrome_2018-07-20_12-33-13


@media (min-width: 769px){
	article.ast-article-post.has-post-thumbnail .entry-content {
	    float: left;
	    clear: none;
	    width: 45%;
	}

	article.ast-article-post.has-post-thumbnail .ast-blog-featured-section.post-thumb {
	    float: right;
	    width: 50%;
	}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment