Created
December 2, 2020 12:47
-
-
Save yousufansa/52ba3d2372e44f8f5df6c7af52e23ac2 to your computer and use it in GitHub Desktop.
Front - APP Marketplace - Change Listing Image Size
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if ( ! function_exists( 'front_hp_template_single_listing_image' ) ) { | |
| /** | |
| * Output the listing image | |
| * Image Size: 450x450-crop | |
| */ | |
| function front_hp_template_single_listing_image( $listing ) { | |
| if ( has_post_thumbnail() ) { | |
| ?><div class="text-center mx-auto mb-3"><?php | |
| $img_sz_name = front_get_image_size( 'blog_agency_thumbnail_2', 'post-thumbnail' ); | |
| the_post_thumbnail( $img_sz_name, array( 'class' => 'img-fluid' ) ); | |
| ?></div><?php | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment