Woocommerce: different taxonomie => different background color

Hello,
is there a way to set a different background color on the wc single layout for different taxonomie?
eg:
Product A, F, G, H,… => Taxonomie = Image => Red Background-Color
Product B, I, W, U,… => Taxonomie = Bottle => Blue Background-Color
Product C, S, D, V,… => Taxonomie = Can => Yellow Background-Color

Or should i make a different single layout for each taxonomie?

Thanks in advance for your help.
Cheers

Hello @deranaloge,

Thanks for writing in!

Yes, it would be best if you create a different custom single layout for the respective taxonomy. You can then assign the condition as an example:

  • Post Type Is Product AND
  • Taxonomy is “Red”

Kindly let us know how it goes.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.