Elegant Themes to change image size in filterable portfolio

\wp-content\themes\Flexible\funtions.php

around line 310:

change:

    $portfolio_query = new WP_Query( apply_filters( 'et_ajax_portfolio_args', $portfolio_args ) );
    while ( $portfolio_query->have_posts() ) : $portfolio_query->the_post();
        global $post;
        $width = apply_filters( 'et_ajax_media_width', 600 );
        $height = apply_filters( 'et_ajax_media_height', 480 );

        $media = get_post_meta( $post->ID, '_et_used_images', true );
        echo '<div>';
to:
    $portfolio_query = new WP_Query( apply_filters( 'et_ajax_portfolio_args', $portfolio_args ) );
    while ( $portfolio_query->have_posts() ) : $portfolio_query->the_post();
        global $post;
        $width = apply_filters( 'et_ajax_media_width', 640 );
        $height = apply_filters( 'et_ajax_media_height', 480 );

        $media = get_post_meta( $post->ID, '_et_used_images', true );
        echo '<div>';

Then (it won't make a difference until you) change or add to the bottom of stylesheet.css 
.et_media {
    width: 640px;
}

1 Comment

  1. J5Alive says:

    This is great however, it gets wonky on the responsive end when sizing down.

Leave a comment