• Resolved webcouture1

    (@webcouture1)


    Store page shows category images and counts of products within each category, eg “12 PRODUCTS”. Can you recommend CSS or php to replace name “products” with “items”, so it would display “12 PRODUCTS”. Is this name assigned in woocommerce file (which one?) or theme file?

    Thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • I tried a couple of themes and I get: “category-name (12)” not “12 Products”.

    Please post a link to the relevant page so I can be sure I’m looking in the right place.

    Thread Starter webcouture1

    (@webcouture1)

    Theme is Astra

    “Products” is coming from the theme file: “class-astra-woocommerce.php”, but best not to edit theme files as edits would be overwritten by updates.

    Try:
    https://en-gb.wordpress.org/plugins/say-what/
    and setup new string replacements at
    Dashboard > Tools > Text changes

    Text change settings:

    Original string: %1$s Product
    Domain: astra
    Text context: product categories
    Replacement string: %1$s Item

    Original string: %1$s Products
    Domain: astra
    Text context: product categories
    Replacement string: %1$s Items

    Thread Starter webcouture1

    (@webcouture1)

    Thank you for your help Lorro, it worked. I did not realize the set up was coming from theme, not Woocommerce.

    Missy a11n

    (@m155y5)

    Automattic Happiness Engineer

    It sounds like you got this worked out with Lorro’s help, so I’m going to go ahead and mark this thread as resolved. If you have any other questions please feel free to start a new thread.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Product Category Count’ is closed to new replies.