Linux 软件免费装
Banner图

Product Attribute Icons Display

开发者 neatplugins
更新时间 2025年12月27日 07:21
PHP版本: 7.4 及以上
WordPress版本: 6.9
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce icons badges customization product attributes

下载

1.0.0

详情介绍:

Product Attribute Icons Display allows you to display beautiful, customizable icons for product attributes on single product pages. Perfect for showcasing platform compatibility (Windows, Mac, Linux), region availability, product features, or any other product attributes with visual icons. The plugin uses WordPress Dashicons, which are built into WordPress and provide hundreds of icons to choose from. Each attribute can have custom colors, labels, and icons, and you can control exactly where the icons appear on your product pages.

安装:

  1. Upload the plugin files to the /wp-content/plugins/product-attribute-icons-display directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the 'Plugins' screen in WordPress.
  3. Navigate to WooCommerce > Product Icons to configure your attribute icons.
  4. Enable attributes, set custom labels, and add Dashicons icon classes (e.g., dashicons dashicons-gamepad).

屏幕截图:

  • Icons displayed on single product page above product price
  • Icons displayed on single product page below product price 2
  • Icons displayed on single product page above product title
  • Custom color settings for individual attributes
  • Different Attribute color and Style 1
  • Different Attribute color and Style 2
  • Different Attribute color and Style 3

升级注意事项:

1.0.0 Initial release of Product Attribute Icons Display. Perfect for displaying platform compatibility, region availability, or any product attributes with visual icons using WordPress Dashicons.

常见问题:

What icon library is supported?

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/

How do I use the shortcode?

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"].

Can I customize the styling?

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 icons

Will the icon positioning work with all themes?

Icon 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:

  • Above Product Title: May not work if your theme removes or modifies the product title hook
  • Above Product Price: Works with most themes that use standard WooCommerce price hooks
  • Below Product Price: Works with most standard WooCommerce themes
  • Below Short Description: Works with most standard WooCommerce themes If a position doesn't work with your theme, try using the shortcode for manual placement.

Can I use custom colors for each attribute?

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.

Do I need to install icon libraries separately?

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

Is the plugin translation ready?

Yes! The plugin is fully translation ready with the text domain product-attribute-icons-display. All user-facing strings are translatable.

更新日志:

1.0.0