Okay
  Public Ticket #399306
Portfolio Pop-up Image Preview Thumb instead of Resize
Closed

Comments

  • Tony started the conversation

    Hello,

    Is there a way to change the Portfolio Pop-up preview to show thumbnails of the featured images instead of a resize of the image? I have set image thumbnails, but no go.

  •  1,973
    Support replied

    Hello,

    It shows featured images.

    The first featured image is the preview AND is inclded in the gallery

    To make the preview thumbnail and display full image in the gallery is custom work.

    thanks

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  • Tony replied

    Thanks for the response. If you don't have any ideas on how to do this custom work, can you tell me how to shut off the preview?

  •  1,973
    Support replied

    Hi there you need to modify the implementation of /sections/portfolio_section_slide.php or /sections/portfolio_section_overlay.php depending on the hover effect.

    Replace

    $full_image = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'full');

    with

    $full_image = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID));

    or whichever size you prefer.

    https://codex.wordpress.org/Function_Reference/wp_get_attachment_image_src

    thanks

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy