Tagged: image height, Portfolio
-
AuthorPosts
-
April 7, 2014 at 9:29 pm #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!
April 8, 2014 at 9:30 pm #248957bump – hello?
April 9, 2014 at 4:04 am #249035Hi!
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,
IsmaelApril 9, 2014 at 4:27 am #249042Thanks 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
April 9, 2014 at 10:42 pm #249433I’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?
April 10, 2014 at 8:49 am #249652Hi!
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!
PeterApril 10, 2014 at 2:58 pm #249778Dude – Peter, That’s it man, thanks!
-
AuthorPosts
- The topic ‘Portfolio image height’ is closed to new replies.