Single portfolio image
-
Hi there,
I have installed the child theme: elegant portfolio. However, I noticed that on single portfolio page, the featured images are cropped.
I’ve had to look into the code, to replace image size to full size:
if( ! function_exists( 'perfect_portfolio_single_portfolio_thumbnail' ) ) : /** * Portfolio gallery */ function perfect_portfolio_single_portfolio_thumbnail(){ if( is_singular( 'rara-portfolio' ) ){ if( has_post_thumbnail() ) { echo '<figure class="post-thumbnail">'; the_post_thumbnail( 'full', array( 'itemprop' => 'image' ) ); echo '</figure>'; } } } endif; add_action( 'perfect_portfolio_before_single_portfolio_content', 'perfect_portfolio_single_portfolio_thumbnail' );
There might be a better way to achieve this, without messing with your code. Can you please provide this with the next update of your theme??
Warm regards,
IreneThe page I need help with: [log in to see the link]
- The topic ‘Single portfolio image’ is closed to new replies.