Hi
I have set up a portfolio grid using image size of 495 x 400px. The image displayed in the actual portfolio page is 495 x 321px
How do I configure this so that image displayed on actual portfolio page is also 495 x 400px?
kind ergards
Duncan
Hey dweddell,
Thank you for the inquiry.
The image displayed in the grid items is actually 495x400px, but the items must be resized based on the container’s maximum width, which also affects the rendered size of the images.
For single portfolio pages, try to add the following code to the functions.php file to use the original (full-size) version of the portfolio featured image:
add_action( 'init', 'ava_set_image_size_for_single_portfolio' );
function ava_set_image_size_for_single_portfolio() {
if ( is_singular( 'portfolio' ) ) {
global $avia_config;
$avia_config['size'] = 'full';
}
}
Best regards,
Ismael
ok will give this a try
thanks again for your help :)