New Woo brand announcement v2 | Feb 4, 2025

Added by Mahrie - https://woomarketingstudio.wordpress.com/2024/12/20/studio-request-logo-rollout-customer-comms/

Product Icon

Product Add-Ons for WooCommerce

Trending
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.