Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
  • #1023557

    Great theme update with 4.5 – thank you!
    I noticed today though that you have changed the size of the default Portfolio featured image size from 402x325px to 495x400px. Is there a reason why? I size all my featured images exactly to 402x325px so that desktop browsers minimize the amount of resizing done; that was the perfect size for all my Portfolio item featured images but, since the update, the theme (and WordPress) no longer generates a 402×325 image for any upload – it generates a 495x400px for Portfolio items instead.

    Can you tell me why it has been changed and what I can do to get it back? I am loathed to do a manual add-in to functions.php (where all the stock theme sizes are registered) so is there a child-theme solution to add this back again?

    Any help is appreciated.


    Hey Ed,

    I’m not really sure about the size but I checked the oldest enfold theme in my archive which is 4.0.7 and it was 495 x 400px already.
    I would suggest using this plugin:
    After installing and activating the plugin, go to Settings > Media > portfolio size, then set it to the value you’d like to use and that should override the image size value in functions.php.
    Hope this helps.

    Best regards,


    Hi Nikko

    Thank you for replying but unfortunately your information is a little inaccurate.

    For example, in version 4.1 the functions.php file registers this:
    $avia_config['imgSize']['portfolio'] = array('width'=>402, 'height'=>325 ); // images for portfolio entries (2,3 column)
    That clearly sends a request to create an image at these dimensions for the tag ‘portfolio’

    In version 4.5 (that I refer to) that has now changed to this:
    $avia_config['imgSize']['portfolio'] = array('width'=>495, 'height'=>400 ); // images for portfolio entries (2,3 column)
    which now registers a different size upon image upload. So, with reference to my original problem, WordPress will not generate a 402x325px image unless I physically go and change this directly in functions.php

    I don’t want to do this every time you have an update. So please either change it back or explain why you have changed the properties of this entry please? It messes with all the resizing optimization for all my Portfolio entries.

    I would be grateful if you could paste me some code where I can override this in my child theme functions.php

    Thank you in advance

    PS – I have unzipped a fresh copy of 4.07 and there is no mention of a 495 x 400 px image size! FYI this is the entire selection of registered image sizes from 4.07

    $avia_config['imgSize']['widget'] 			 	= array('width'=>36,  'height'=>36);						// small preview pics eg sidebar news
    $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']['featured_large'] 		= array('width'=>1500, 'height'=>630 );						// images for fullsize pages and fullsize slider
    $avia_config['imgSize']['extra_large'] 		 	= array('width'=>1500, 'height'=>1500 , 'crop' => false);	// images for fullscrren slider
    $avia_config['imgSize']['portfolio'] 		 	= array('width'=>402, 'height'=>325 );						// 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'=>845, 'height'=>684 );						// images for portfolio entries (2,3 column)
    $avia_config['imgSize']['magazine'] 		 	= array('width'=>710, 'height'=>375 );						// images for magazines
    $avia_config['imgSize']['masonry'] 		 		= array('width'=>705, 'height'=>705 , 'crop' => false);		// images for fullscreen masonry
    $avia_config['imgSize']['entry_with_sidebar'] 	= array('width'=>845, 'height'=>321);		            	// big images for blog and page entries
    $avia_config['imgSize']['entry_without_sidebar']= array('width'=>1210, 'height'=>423 );						// images for fullsize pages and fullsize slider
    $avia_config['imgSize'] = apply_filters('avf_modify_thumb_size', $avia_config['imgSize']);
    • This reply was modified 5 years, 6 months ago by Swarez.

    Hi Ed,

    I don’t think the information I gave is wrong since I never changed the value.
    Also you can check it in this thread which is 4 years ago that 495 x 400 has already been the size of the portfolio:

    Change portfolio image size

    I understand that you’d like to override it in the child theme, however there’s no hook where we can override it, that’s why I suggested to use the plugin mentioned above instead.

    Best regards,

    • This reply was modified 5 years, 6 months ago by Nikko.

    That’s odd because I download every thing from Themeforest as a ZIP file. A simple unpack and I get the code above so how is yours different?? And I have been doing the exact same thing for four years and each one is the same I assure you!
    And yesterday was the first time it changed.
    So please Nikko, can you tell me what’s happened?
    You guys and girls are superb in what you do but this has absolutely no explanation – why has every fresh version of the theme unpacked and given me code above? It makes no sense.
    Even on my server all the image uploads have a 402x325px image. and this is generated from functions.php
    I appreciate what you’re saying but this is odd don’t you think?


    by the way that link from above doesn’t link to anything – did you mean it to?


    Hi Swarez,

    I have no intention of giving you a link that doesn’t work, it’s a thread in the forum from 4 years ago, if you can’t see try checking it with this link (or the link in private content):
    or you can search through Enfold or google with the keywords Enfold Image Size and you’ll see it hasn’t changed.

    Best regards,


    Hi Nikko
    Thank you for your help – this is odd but I’ll do the adjustments in functions.php.
    Sorry to have wasted your time.


    Hi Swarez,

    No worries, I’m just glad that the image size issue is cleared out :)
    As for overriding it in the child theme, I apologize I’m wrong regarding it, can you try adding this in your child theme’s functions.php:

    add_filter( 'avf_modify_thumb_size', 'enfold_customization_modify_thumb_size', 10, 1 );
    function enfold_customization_modify_thumb_size( $size ) {
      $size['portfolio'] = array('width'=>402, 'height'=>325);
      return $size;

    Let us know if this helps.

    Best regards,


    Thank you Nikko
    I will test and report back! Thanks for the code – that will be a big help if it works okay.
    Kind regards


    Hi Nikko
    The code works! I can now resize and save a Portfolio image of 402x325px!
    Thank you so much!
    Best wishes



    I’m glad to hear this was resolved. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Update 4.5 – where has the 402 x 325px Portfolio image size gone?’ is closed to new replies.