[Plugin: NextGEN Gallery] Width / Height variable for Singlepic? Can't figure it out
-
I need the width / height variable for singlepic. I’m basically trying to add the Width= height= to the image code for optimizing site speed.
I opened up singlepic.php and edited it very slightly
<img class="<?php echo $image->classname ?>" src="<?php echo $image->thumbnailURL ?>" width="<?php echo $width ?>" height="<?php echo $height ?>" alt="<?php echo $image->alttext ?>" title="<?php echo $image->alttext ?>" />
I just added width=”<?php echo $width ?>” and height=”<?php echo $height ?>” but it’s not working. It’s not pulling the width / height variables. I know this is the right file, as it now shows width=”” height=”” in my code (These weren’t here before). I tried $w and $h as well, but same results.
- The topic ‘[Plugin: NextGEN Gallery] Width / Height variable for Singlepic? Can't figure it out’ is closed to new replies.