Archived topic
Image Gallery Resizing
2 replies · Started by Tommy on March 12, 2019
Using GP and Elementor.
Having major issues with an image gallery in terms of image sizing/alignments, etc.
After banging my head for over 10 hrs, I think I finally found a possible solution that looks like it may work, but after adding Tom's code, it's still not working.
I'm so close I think, but need some help to finish line ;)
Pretty please.
Ok so added this, and looks like it's working now (ran Regenerate Thumbnails, but that didn't work so had to re-upload my 150+ images. That sucked.)
add_action('after_setup_theme', 'tu_add_image_sizes');
function tu_add_image_sizes() {
add_image_size( 'Custom Media Gallery', 300, 300, true ); // 300x300 pixels wide
}
Q: what does the "tu" prefix mean?
Hi there,
Glad you figured out!
TU is just Tom's initials. It would be anything :)