Skip to content

Instantly share code, notes, and snippets.

@rushijagani
Created July 20, 2018 07:01
Show Gist options
  • Select an option

  • Save rushijagani/10894fc0c6da89f9b7b1d2ea89d2e984 to your computer and use it in GitHub Desktop.

Select an option

Save rushijagani/10894fc0c6da89f9b7b1d2ea89d2e984 to your computer and use it in GitHub Desktop.
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
Copy link
Copy Markdown
Author

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