GTMetrix told me to “Specify image dimensions”. I checked the listed images and noticed that only the hover images (the images that appear on shop catalogue page when I hover over the featured image) dont have image dimensions. The featured images do have image dimensions and are using src, as is should be. Why isnt it the same with the hover images? Also, it always loads the full size image, not the smaller catalogue-size-version.
Is it possible to fix this in the next update and to tell me how to fix it now?
Many thanks in advance!
The issue has nothing to do with my website, it happens on all websites using Royal theme. To clarify what I mean, I have added some details in private content as I dont want my url or screenshots of my page to be public. Thank you.
Instead the changes you made, you can use this
<?php if ($hoverUrl != ''): ?> <img src="<?php echo $hoverImg['url']; ?>" width="<?php echo $size['width'] ?>" height="<?php echo $size['height'] ?>" alt="<?php the_title(); ?>" class="show-image"> <?php endif ?>
it is more elegant way, but we already take this in to developers so they will fix this up in the upcoming updates.
PS: I tried to change that in the FTP, but it didn’t reflect in the front-end, I think there is some cache. So I pass the solution to you instead.
Let us know,
You must be logged in to reply to this topic.Log in/Sign up
One standard license is valid only for 1 project. Running multiple projects on a single license is a copyright violation.
The message was successfully sent
Your shopping cart is empty