| 开发者 | neatplugins |
|---|---|
| 更新时间 | 2025年12月27日 07:21 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 6.9 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
/wp-content/plugins/product-attribute-icons-display directory, or install the plugin through the WordPress plugins screen directly.dashicons dashicons-gamepad).The plugin supports WordPress Dashicons, which are built into WordPress. You can use any Dashicons CSS class format. Reference: https://developer.wordpress.org/resource/dashicons/
Use [paiw_product_attribute_icons] to display icons for the current product, or [paiw_product_attribute_icons id="123"] for a specific product ID. You can also add a custom CSS class: [paiw_product_attribute_icons class="my-custom-class"].
Yes! The plugin uses CSS variables that you can override in your theme's CSS or through the WordPress Customizer. The main CSS variables are:
--paiw-bg-color: Background color--paiw-text-color: Text and icon color--paiw-border-color: Border color--paiw-border-radius: Border radius--paiw-spacing: Spacing between iconsIcon positioning may vary depending on your theme's structure. The plugin uses standard WooCommerce hooks, but some themes may modify or remove these hooks, which could affect icon placement. If automatic positioning doesn't work as expected with your theme, you can use the shortcode [paiw_product_attribute_icons] to manually place icons anywhere in your product template.
The following positions are available:
Yes! You can set global default colors for all attributes, and then enable custom colors for individual attributes. When custom colors are enabled for an attribute, you can set unique background, text, and border colors for that specific attribute.
No! Dashicons are built into WordPress and work automatically - no setup required. Simply use the Dashicons format when configuring your icons (e.g., dashicons dashicons-gamepad).
Yes! The plugin is fully translation ready with the text domain product-attribute-icons-display. All user-facing strings are translatable.