New answers tagged

2

OK, well, we found a quick and perhaps a bit dirty solution using PHP's getimagesize () function. Specifically, this is the code: <?php if ( get_theme_mod( 'themeslug_logo' ) ) : $themelogo = get_theme_mod( 'themeslug_logo' ); $themelogo_size = getimagesize($themelogo); $themelogo_width = $themelogo_size[0]; $themelogo_height = ...



Top 50 recent answers are included