Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1489166

    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

    #1489175

    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

    #1489192

    ok will give this a try

    thanks again for your help :)

    #1489211

    Hi,

    Thanks for the update. Please let us know if you should need any further help on the topic, or if we can close it.

    Best regards,
    Rikard

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.