-
AuthorPosts
-
May 16, 2013 at 2:57 pm #23372
Hello!
My old site had all preview images of portfolio works with size of 200×200 pixels.
So now I want to disable resizing of images in Enfold theme(it will allow mу to use old preview images).
All prewiew images shoud have the size of 200×200, no matter what size the browser have.
I think I shoud change something in the functions.php
$avia_config['imgSize']['widget'] = array('width'=>36, 'height'=>36); // small preview pics eg sidebar news
$avia_config['imgSize']['entry_with_sidebar'] = array('width'=>710, 'height'=>270); // big images for blog and page entries
$avia_config['imgSize']['entry_without_sidebar']= array('width'=>1030, 'height'=>360 ); // images for fullsize pages and fullsize slider
$avia_config['imgSize']['square'] = array('width'=>180, 'height'=>180); // small image for blogs
$avia_config['imgSize']['featured'] = array('width'=>1500, 'height'=>430 ); // images for fullsize pages and fullsize slider
$avia_config['imgSize']['portfolio'] = array('width'=>495, 'height'=>400 ); // images for portfolio entries (2,3 column)
$avia_config['imgSize']['portfolio_small'] = array('width'=>260, 'height'=>185 ); // images for portfolio 4 columns
$avia_config['imgSize']['gallery'] = array('width'=>710, 'height'=>575 ); // images for portfolio entries (2,3 column)Or may be theris a way to simply disable this function(but in other occasions resize shoud work)?
May 17, 2013 at 1:30 am #119560Hi,
If you only want to target the portfolio thumbnails, you should change this line of codes
$avia_config['imgSize']['portfolio'] = array('width'=>495, 'height'=>400 ); // images for portfolio entries (2,3 column)
$avia_config['imgSize']['portfolio_small'] = array('width'=>260, 'height'=>185 ); // images for portfolio 4 columnsYou may need to edit some css because it will probably resize the thumbnail but the thumbnail will inherit the size of the portfolio container.
Regenerate the thumbnails with http://wordpress.org/extend/plugins/regenerate-thumbnails/.
Regards,
Ismael
May 17, 2013 at 6:37 pm #119561I changed all values to 200, uploaded new images, but nothing changed.
Images have following properties:
style="opacity: 0; left: 0px; top: 0px; display: block; height: 257px; width: 257px;"
So the size is 257*257, not 200*200.
Is there any other place, where the size is set to 257?
May 17, 2013 at 8:36 pm #119562Sorry, previos code is about the overlay image, but no the prewiev.
A found the problem in shortcodes.css. See the screenshot: https://dl.dropboxusercontent.com/u/21689806/problem.JPG
So I change one value:
.grid-image img{width:200px; display: block;}
Now image is correct, but container’s size is the same, so there is blank space: https://dl.dropboxusercontent.com/u/21689806/problem2.JPG
May 17, 2013 at 9:12 pm #119563It would be very nice if Moderator Nick can help me – he is specializing on image problems=)
May 18, 2013 at 8:03 am #119564Actually you can’t re-size the portfolio grid – this will probably break the layout. However maybe we can center the images (white space/padding on the left/right). Can you post a link to your portfolio page please?
May 18, 2013 at 8:13 am #119565Here it is: http://www.zink.by/portfolio/
May 18, 2013 at 10:23 am #119566I created a new topiс here: https://kriesi.at/support/topic/blyrry-portfolio-items#post-112130
-
AuthorPosts
- The topic ‘Portfolio preview 200×200 px with fixed size’ is closed to new replies.