Ask the community

This is a community support forum where you can ask
questions and interact with other PremiumPress Customers.

top image on listing page

  • Itiel
    Itiel
    Newbie 12 points
    July 16, 2013 at 5:56 pm

    hi, on the post page, i.e a listing’s inner page which shows all it’s details there is the top image- how can that be resized (bigger width). i have seen posts on the preview image where all results are shown but no reference to the listing page itself.

    thanks.


  • Jennifer
    Newbie 1 points
    July 17, 2013 at 8:37 pm

    I think what you are talking about is enlarging the display image on the listing page, correct?

    If so, go to your _single.php file and search for:

    ?php
    // IMAGE DISPLAY // V7
    echo premiumpress_image

    At the end of that you will see lightbox width & height followed by max width and height. You will need to change those to suit your needs.

    We wanted 250 px square images to match the size of ads on our site so our code looks like:

    <div class=”right frame”>

    <?php
    // IMAGE DISPLAY // V7
    echo premiumpress_image($post->ID,””,array(‘alt’ => $post->post_title, ‘link’ => ‘self’, ‘link_class’ => ‘lightbox’, ‘width’ => ‘250’, ‘height’ => ‘250’, ‘style’ => ‘max-width:250px; max-height:250px;’ ));
    ?>

    </div>

    Hope this helps!

  • Itiel
    Itiel
    Newbie 12 points
    July 20, 2013 at 9:11 pm

    THANK YOU. THAT WAS VERY VERY HELPFUL IN UNDERSTANDING QUITE A FEW ELEMENTS TO CUSTOMIZE. THANKS SO MUCH.

    I APPRECIATE THE SWIFT REPLY AS WELL!

  • Jacqueline
    Jacqueline
    Newbie 6 points
    December 7, 2013 at 11:26 pm

    Is there a way to fix the height but leave the width proportional? Currently any non-square images lose their aspect ratio as they’re forced to fix the box.

Viewing 4 posts - 1 through 4 (of 4 total)