• Hello, I am wondering if it is possible to remove the words “Categories” and “Tags” on the product pages.

    Here is an example: http://cl.ly/image/3h3N1Z2C210J

    In this scenario, I’d like only the actual categories to appear, not the label or beginning text “categories:” and same with tags.

    I also want to remove the period at the end of these lists and at the end of the SKU number.

    I don’t want to set up a new template for this, because it’s just one change we need to do.

    If anyone knows a code snippet that can be used in the functions.php file that would help tremendously.

    I’ve tried searching the web about this but not much comes up. The closest I’ve seen is changing the taxonomy label, not getting rid of it altogether. And the suggestion there is to use a translation file, which is a bit much for us.

    Here is that post http://wordpress.org/support/topic/plugin-woocommerce-excelling-ecommerce-rename-categories-and-products?replies=45

    I would be so thankful for any help you can offer!!!

    Thanks in advance!

    https://wordpress.org/plugins/woocommerce/

Viewing 5 replies - 1 through 5 (of 5 total)
  • To remove the words “Categories” and “Tags” on the product pages, try this in your custom css:

    span.posted_in {visibility:hidden}
    span.posted_in a {visibility:visible; float:left; margin-right:12px}
    span.posted_in a:first-child {display:block}
    span.tagged_as {visibility:hidden}
    span.tagged_as a {visibility:visible; float:left; margin-right:12px}
    span.tagged_as a:first-child {display:block}

    The period is too much of a challenge for me.

    Thread Starter joycegrace

    (@joycegrace)

    Wow thanks for your help! It did work, sort of, but it also got rid of the commas between the actual taxonomies: http://cl.ly/image/281F253z0L1g – do you happen to know how we can bring that back?

    I understand if it’s too challenging, like the period 🙂

    Thanks so much!

    Try 2:

    span.sku_wrapper {visibility:hidden}
    span.sku_wrapper span.sku {float:left; visibility:visible}
    span.sku_wrapper span.sku::before{content:"SKU: "}
    
    span.posted_in {display:block; visibility:hidden}
    span.posted_in a {visibility:visible; float:left}
    span.posted_in a::before {content:", "}
    span.posted_in a:first-child::before {content:""}
    
    span.tagged_as {display:block; visibility:hidden}
    span.tagged_as a {visibility:visible; float:left}
    span.tagged_as a::before {content:", "}
    span.tagged_as a:first-child::before {content:""}

    Thread Starter joycegrace

    (@joycegrace)

    Hi Lorro!

    First of all, thank you so much for your help on this.

    We found it wasn’t working as well as we wanted it to, but we did come up with this, which is working for us:

    span.sku_wrapper {visibility:hidden}
    span.sku_wrapper span.sku {visibility:visible}
    span.sku_wrapper span.sku::before{content:”SKU: “}

    span.posted_in {visibility:hidden}
    span.posted_in a {visibility:visible;}
    span.posted_in a:first-child {display:inline-block;margin-left:-25%;}
    span.posted_in a:last-child::after {content:””}
    span.posted_in a::after {content:”,”}

    span.tagged_as {visibility:hidden}
    span.tagged_as a {visibility:visible; }
    span.tagged_as a:first-child {display:inline-block;margin-left:-10%;}
    span.tagged_as a:last-child::after {content:””}
    span.tagged_as a::after {content:”,”}

    I hope it helps others who are looking!

    Hi Joycegrace!

    Could it also be possible to add some tekst in front of the Tags?
    So this would be tekst that replaces the word “Tags”

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Remove "categories" and "tags" words on product pages?’ is closed to new replies.