Random image sizes for masonry layout
-
Ultimately, my goal is to accomplish something like this: https://erikjohanssonphoto.com/work/imagecats/personal/
I have added various image sizes to my theme before I uploaded any images:
add_image_size( '140', 140, 140, true ); add_image_size( '280', 280, 280, true ); add_image_size( '596x292', 596, 292, true ); add_image_size( '292x596', 292, 596, true ); add_image_size( '444x292', 444, 292, true ); add_image_size( '292x444', 292, 444, true );
Despite all that, the images still remain in the same size.
Is there a way to randomize the size of the images with the image sizes I defined, or by a setting somewhere?
Another solution might be accomplished with something like the perfect masonry jQuery plugin: https://www.drewdahlman.com/meusLabs/?p=218
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Random image sizes for masonry layout’ is closed to new replies.