Okay
  Public Ticket #154536
Very large images
Closed

Comments

  • robert started the conversation
    I am using the portfolio to display images load via salient but they are really big 4000px wide etc. I know there are a few versions generated when loaded of the images. Is it possible to pull back the smaller images say 1000 wide into the slider on the portfolio page. I am creating a gallery and checking display as slider. Even though it looks ok the file sizes are way to big. Thx. Ps great theme by the way
  •  1,043
    ThemeNectar replied

    Hey Robert!

    If you want to alter that - open up your single-portfolio.php file and find this section:

    foreach( $gallery_ids as $image_id ) {
    	 echo '<li>' . wp_get_attachment_image($image_id, '', false) . '</li>';
    } ?>

    and change it to this:

    foreach( $gallery_ids as $image_id ) {
    	 echo '<li>' . wp_get_attachment_image($image_id, array(1000,500), false) . '</li>';
    } ?>

    Cheers :)