Skip to content

Instantly share code, notes, and snippets.

@woogists
Last active September 1, 2022 14:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save woogists/13939b07ec145fb06cf8b1b51a8a035b to your computer and use it in GitHub Desktop.
Save woogists/13939b07ec145fb06cf8b1b51a8a035b to your computer and use it in GitHub Desktop.
[General Snippets] Display product attribute archive links
@rwkyyy
Copy link

rwkyyy commented Sep 23, 2020

on some localisations (eg. RO) it shows PRODUCT 'ATTRIBUTE NAME' and then the value, instead of just ATTRIBUTE NAME + value.

A solution to this is using:
$taxonomy->labels->singular_name
instead of
$taxonomy->labels->name

also I do recommend using <p> wrappers for SEO purposes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment