plugin-icon

Manly Fix

제작자: DimitriAus·
HTML validatator errors fix in WordPress and WooCommerce.
버전
1.5.1
최근 업데이트일
May 23, 2026

Applies configurable HTML fixes to WordPress and WooCommerce page output. Each fix can be individually enabled or disabled via Settings Manly Fix.

WordPress & HTML Fixes

  • Remove trailing slashes – Removes XHTML-style trailing slashes (/>) from void elements (<meta>, <link>, <img>, <input>, etc.) for clean HTML5 output. Validator: “Info: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values.”

  • Remove intrinsic size CSS – Removes the contain-intrinsic-size CSS rule injected by WordPress for auto-sized images. Validator: “CSS: contain-intrinsic-size: Property contain-intrinsic-size doesn’t exist.”

  • Remove redundant aria-hidden – Removes aria-hidden="true" from elements that already carry the hidden attribute. Validator: “Attribute aria-hidden is unnecessary for elements that have attribute hidden.”

  • Move router style to <head> – Moves the WordPress Interactivity Router animations inline <style> tag from <body> to <head>. Validator: “Element style not allowed as child of element body in this context. (Suppressing further errors from this subtree.)”

  • Remove invalid as from prefetch links – Removes the invalid as attribute from <link rel="prefetch"> elements emitted by WooCommerce. Validator: “A link element with an as attribute must have a rel attribute that contains the value preload or the value modulepreload.”

WooCommerce Fixes

These fixes are only shown when WooCommerce is active.

  • Mini-cart role=”dialog” – Adds missing role="dialog" to the WooCommerce mini-cart drawer div. Validator: “Element div is missing one or more of the following attributes: role.”

  • Add placeholder src to Interactivity API images – Adds a transparent placeholder src and an empty alt="" to <img> elements that use the WordPress Interactivity API but have no static attributes. Real values are set by JavaScript at runtime. Validator: “Element img is missing one or more of the following attributes: src, srcset.” / “An img element must have an alt attribute.”

Support

For issues, feature requests, or contributions, please contact Manly Electronics.

무료유료 요금제에서
설치하면 WordPress.com 서비스 약관서드파티 플러그인 약관에 동의하게 됩니다.
테스트된 버전
WordPress 7.0
이 플러그인은 다운로드할 수 있으며 에서 사용할 수 있습니다.