Product Icon

Product Add-Ons for WooCommerce

Offer add-ons like gift wrapping, special messages or other special options for your products.

Include width=”” and height=”” on multiple choice images in the HTML tags

The multiple choice image tags do not include a width or height in the HTML.

This causes Google Lighthouse to complain about the following issue: “Image elements do not have explicit width and height”.

The Addons CSS (/wp-content/plugins/woocommerce-product-addons/assets/css/frontend/frontend.css) sets a max width and max height so it would be useful to just include the height and width on the image too.

e.g. inspect one of the addon image elements on this products cart form https://ohcoco.au/product/name-puzzle/ and it will only have src and alt tags on the image. It should also include width and height

Author

Joseph Chesterton

Current Status

Open

Last updated: September 4, 2024

0 comments

Log in to comment on this feature request.

Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.