Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #473767

    Hello!

    Quick question: how do I change the dimension of the following?
    “Single author, small preview pic (no author picture is displayed, featured image is small) ”

    I’ve inserted the following in quick css:
    $avia_config[‘imgSize’][‘square’] = array(‘width’=>144, ‘height’=>81);

    However the images are still showing up as square:
    http://grab.by/IQ3I

    I’d like the images to be displayed at 144×81 pixels, however this doesn’t seem to be happening. I’ve regenerated all thumbnails, and uploaded images that are 144×81 while keeping their name (image name)-180×180 intact. In other words, I uploaded images under the old name of (image name)-180×180 but changed the actual image dimensions to 144×81.

    thanks for your help!

    #473776

    Hey Rshaules!

    Code should not go to Quick CSS field. I removed it from there. Please add following code to Functions.php file in Appearance > Editor

    add_filter( 'avf_modify_thumb_size', 'enfold_customization_modify_thumb_size', 10, 1 );
    function enfold_customization_modify_thumb_size( $size ) {
            $size['square'] 		 	= array('width'=>144, 'height'=>81 );		
    	return $size;	
    }

    and then regenerate thumbnails

    Cheers!
    Yigit

    #473816

    Thanks so much for your quick reply!

    I’ve added the code as suggested and have hit the button to regenerate thumbnails. For some reason nothing seems to happen, and it continues saying “regenerating 1 of 123” and not going anywhere:

    http://grab.by/IQbS

    Any suggestions?

    #473828

    Hi!

    Which plugin are you using to regenerate thumbnails? Please use this one – https://wordpress.org/plugins/regenerate-thumbnails/

    Regards,
    Yigit

    #473833

    Thanks! I’m trying it out now :)

    #473846

    So sorry to trouble you… have regenerated several thumbnails and all thumbnails are still showing up as square (even those that were changed):

    http://grab.by/IQhe

    #474377

    I think the code you’ve given me has made it worse:

    http://grab.by/IShU

    Now the image is incredibly tiny, and is only being shown within the original constraints of the square… I think I’m better off restoring the default setting rather than risking things getting worse.

    -Richard

    #474717

    Hi Richard,

    I wanted to have a look at the page in your initial post but it redirects me to a login screen even though I’m logged in, what do we need to do to view the page?

    Regards,
    Rikard

    #474720

    Can you please try to log out and then login again?

    The specific page in question is the home page:

    http://www.christianholydays.com.au

    If you have a look at the thumbnails, you’ll see they are rendering incorrectly…

    #474738

    Please forgive me, I was working between two websites and gave you the incorrect login details.

    Here are the correct details:

    And again, please feel free to take a look at the homepage (www.christianholydays.com.au) to see the error of the thumbnails

    #475338

    Hey guys, I’ve fixed the problem and have been able to return all images back to the desired sizes. Here are the steps of the solution:

    1. Enter the following:
    add_filter( ‘avf_modify_thumb_size’, ‘enfold_customization_modify_thumb_size’, 10, 1 );
    function enfold_customization_modify_thumb_size( $size ) {
    $size[‘square’] = array(‘width’=>81, ‘height’=>81 );
    return $size;
    }

    2. Changed the dimensions of ‘square’ using “simple image sizes” by Nicolas Juen plugin, from 180×180 to 81×81.

    3. Regenerated thumbnails using the “Regenerate Thumbnails” by József Koller plugin.

    It should be noted that even though the default ‘square’ size as provided by enfold is 180×180, this gets resized automatically to 81×81 so it’s pointless to have thumbnails generated at 180×180 when they won’t even display that size. You can see what I’m talking about here: http://grab.by/IVwM

    #475608

    Hi Richard,

    Great, glad you got it fixed. Thanks for sharing your solution and please let us know if you should need any further help on the topic.

    Cheers!
    Rikard

    #508679

    Very important function!!

    DO you know how to deactivate the thumbnails.
    With a function in the childtheme – please?

    #509084

    Hi!


    @hunter74
    Closing this one as you have already received a solution on another thread.
    P.S.: Please stick to one topic.

    Cheers!
    Yigit

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘Changing thumbnail dimensions of’ is closed to new replies.