Change thumbnail aspect ratio | WordPress.org

[ad_1]

Dear @zocimike

You can do that only by adding some code. You can change thumbnail size by adding a function in functions.php, in your theme files:

function cttm_remove_then_add_image_sizes() {
    remove_image_size( 'travelersmap-thumb' );
    add_image_size( 'travelersmap-thumb', 300, 300, true ); //crop the images at 300*300px exactly.
}
add_action('init', 'cttm_remove_then_add_image_sizes');

However this will not change the popup size, you should also add some CSS on your website.
Assuming you have the default popup style (without the excerpt), here is the necessary CSS:

.travelersmap-container.leaflet-container .default-popup .img-mask {
	max-height: unset;
	height: unset;
	aspect-ratio: 1/1;
}

Thank you, you are great! 🙂

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer