Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #248476

    I need to show 400x400px images in the portfolio detail page, e.g.
    http://newsite.riballet.org/portfolio-item/cindy-guo/

    I tried adding/modifying the following in my functions.php…
    $avia_config[‘imgSize’][‘entry_with_sidebar’] = array(‘width’=>710, ‘height’=>400);

    It’s important these images be 400px high because we’ll be adding shots of the dancers in performances and need to show their full body (feet to fingertips), but right now it’s chopping the image down.

    I also tried changing the CSS (.attachment-entry_with_sidebar wp-post-image) to no avail and also changed the value in Media for medium size to be 400×400.

    I read through a bunch of forum threads and still looking for the answer, please help!

    #248957

    bump – hello?

    #249035

    Hi!

    Thank you for using the support forum!

    Edit the code on functions.php:

    $avia_config['imgSize']['entry_with_sidebar'] 	= array('width'=>710, 'height'=>270);		                 // big images for blog and page entries
    

    Replace it with:

    $avia_config['imgSize']['entry_with_sidebar'] 	= array('width'=>710, 'height'=>400, 'crop' => false);		                 // big images for blog and page entries
    

    Regenerate the thumbnails using this plugin: http://wordpress.org/plugins/regenerate-thumbnails/

    Let us know if it works. If not, please give us a link to the actual portfolio item where you test it.

    Best regards,
    Ismael

    #249042

    Thanks Ismael, I tried all the above steps and it made no difference? I also provided the link earlier so you can see an example of the portfolio item…
    http://newsite.riballet.org/portfolio-item/cindy-guo/

    I’d like it if the image on the detail page for each dancer (http://newsite.riballet.org/dancer-bios/) was not cropped at all. With the changes you suggested above I saw no difference?

    Thank you

    #249433

    I’ll be honest – this is disappointing support. Ismael your ‘fix’ didn’t do anything and I already provided the link to a portfolio item (twice – including the original message). What next?

    #249652

    Hi!

    If you don’t want to crop the image on the detail page at all open up wp-content/themes/enfold/single-portfolio.php (or copy this template to your child theme directory and edit the file in your child theme folder) and replace:

    
    $avia_config['size'] = avia_layout_class( 'main' , false) == 'entry_without_sidebar' ? '' : 'entry_with_sidebar';
    

    with

    
    $avia_config['size'] = 'full';
    

    Then wordpress will use the original image and not a cropped thumbnail version.

    Cheers!
    Peter

    #249778

    Dude – Peter, That’s it man, thanks!

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Portfolio image height’ is closed to new replies.