Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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)?

    #119560

    Hi,

    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 columns

    You 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

    #119561

    I 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?

    #119562

    Sorry, 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

    #119563

    It would be very nice if Moderator Nick can help me – he is specializing on image problems=)

    #119564

    Actually 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?

    #119565
    #119566
Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘Portfolio preview 200×200 px with fixed size’ is closed to new replies.