Remove category amount and product information

This topic has 6 replies, 2 voices, and was last updated 6 years, 2 months ago ago by Rose Tyler

  • Avatar: tipadei
    Tiina
    Participant
    December 1, 2016 at 09:08

    Hi,

    I would like to remove both the amount number that appears after a category name on the shop page and product information (product code and categories) on the single page.

    5 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    December 1, 2016 at 09:25

    Hello,

    Please, add this code in Custom CSS:

    span.sku_wrapper {
        display: none !important;
    }
    span.posted_in {
        display: none !important;
    }

    Also, you need to comment the code in the wp-content/themes/legenda/woocommerce/content-product_cat.php in lines 64 and 65:

    if ( $category->count > 0 )
    echo apply_filters( 'woocommerce_subcategory_count_html', ' (' . $category->count . ')', $category );

    Regards,
    Rose Tyler.

    Avatar: tipadei
    Tiina
    Participant
    December 1, 2016 at 09:52

    Hi,

    Thanks, got the product information away, but now still the “product information” title is left behind. What is the code for removing that?

    Also I’m not sure what you mean with “comment”? What should I do with that code?

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    December 1, 2016 at 10:34

    Hello,

    Try to add this code in Custom CSS:

    .single-product .product_meta h4 {
        display: none;
    }

    See screenshot: http://prntscr.com/ddyt3g or you can delete this code.
    We recommend to make any changes in theme source files in child theme https://8theme.com/demo/docs/legenda/index.html#!/child_theme https://codex.wordpress.org/Child_Themes so you won’t lose your customizations after the next theme update.

    Regards,
    Rose Tyler.

    Avatar: tipadei
    Tiina
    Participant
    February 1, 2018 at 14:33

    How could I remove also the category name below the category picture, on shop page?

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 1, 2018 at 15:00
    .post-type-archive-product .product-category h5 {
        display: none;
    }

    Regards

  • Viewing 6 results - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.