Skip to main content
< All Topics
Print

Colours

The plugin imports two colour attribute sets from Promodata:

  • Colours (Suppliers) [slug: colours-supplier] These match the exact colour names listed on supplier websites. Because different suppliers often use distinct names for similar shades (e.g. “Autumn” for Orange or “Graphite” for Grey), this list can become exceptionally long and may not be ideal for client navigation.
  • Colours [slug: colours] This dataset groups colours into standardised ranges, making it ideal for building clear, user-friendly colour filters.
    (Note: This feature is currently a work in progress.)

Managing Colours on Product Pages

By default, both attribute sets are visible in the Additional Information tab on individual product pages. If you prefer to display only the supplier colours, you can hide the standard Colours attribute using the PHP snippet below.

Please note: Code snippets should always be checked for site compatibility and should only be added to your website by someone comfortable working with custom code.

/**
 * Hide the 'colours' attribute from the Additional Information tab on product pages.
 */
add_filter( 'woocommerce_display_product_attributes', 'hide_colour_attribute', 10, 2 );
function hide_colour_attribute( $product_attributes, $product ) {
    // Target the specific attribute slug (pa_colours)
    if ( isset( $product_attributes['attribute_pa_colours'] ) ) {
        unset( $product_attributes['attribute_pa_colours'] );
    }
    
    return $product_attributes;
}

Table of Contents