Created
December 2, 2020 11:11
-
-
Save yousufansa/7271586f0da54b360a7ac57735613eb8 to your computer and use it in GitHub Desktop.
Front - Portfolio - Change Portfolio Classic 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_portfolio_classic_content' ) ) { | |
| function front_portfolio_classic_content() { | |
| /** | |
| * Image Size: 450x450-crop | |
| */ | |
| $img_sz_name = front_get_image_size( 'portfolio_profile_thumbnail_4', 'post-thumbnail' ); | |
| the_post_thumbnail( $img_sz_name ); | |
| $enable_portfolio_author = apply_filters( 'front_portfolio_enable_author', true ); ?> | |
| <div class="py-3"> | |
| <h4 class="h6 text-dark mb-0"><?php the_title(); ?></h4> | |
| <?php if ( $enable_portfolio_author == true ): ?> | |
| <p class="small mb-0"><?php echo sprintf( esc_html__( 'by %s', 'front' ), front_loop_portfolio_author() ); ?></p> | |
| <?php endif; | |
| front_portfolio_post_excerpt(); ?> | |
| </div><?php | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment