Detect and put the size of the image clients logo in the html code.
In “DW One Page Modern” I wish to detect and put the width and height of the “image clients logo” in the Html code.
Do you already have a solution ? Or, what is the page displaying logos customers ?
I put this in “Shortcodes.php” :
$size = getimagesize($client_logo);
$src_w = $size;
$src_h = $size;
And for the image src :
<img src=”‘.$client_logo.'” alt=”‘.$client_title.'” width=”‘.$src_w.'” height=”‘.$src_h.'”>
I think you have resolved this issue. I appreciate it.
Please login or Register to submit your answer