• Hi Anders, thank you for your awesome themes X

    I’m using Koji and would like to crop the thumbs in the masonry gallery but not the original images when clicking through. I’ve tried various things but no success,? would appreciate some advice.
    Thanks

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Theme Author Anders Norén

    (@anlino)

    Hi @morris12,

    Glad you like them!

    If you use a child theme, you can use add_image_size() to modify the preview image size to be square with a fixed crop. Add the following to the functions.php file in your child theme:

    function koji_child_setup() {
    
    	// Add image sizes
    	add_image_size( 'koji_preview_image_low_resolution', 400, 400, true );
    	add_image_size( 'koji_preview_image_high_resolution', 800, 800, true );
    
    }
    add_action( 'after_setup_theme', 'koji_child_setup' );

    — Anders

Viewing 1 replies (of 1 total)
  • The topic ‘Cropping thumb images in Masonry gallery’ is closed to new replies.