Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

hide all woocommerce products from Shop page display

  • Alberto Salas

    HI,
    In the Shop page, I want to display only products under specific categories which I achieved by using the Woocommerce glutenberg block called “Products by category”. This was a success.
    The issue is that after this block, all products still show up in the shop page (including the ones filtered out using the “Products by category” block, so that most products are shown twice (once in the “Products by category” block and a second time because the Shop Page Display (located in the Customizing ▸ WooCommerce ▸ Product Catalog section) is default in “Show Products”.
    I think the solution is to Hide Products. Is this the best way to solve my problem? If so, can you please provide me with the step by step on how to achive this efficiently?

    Thank you in advance!

  • Hi there,

    We do not have control over Woocommerce’s template, we only control some of the styles.

    I would recommend reaching out to Wooocommerce’s support for this.

    If you do not need to remove them from HTML, we can use CSS to hide them.

    .archive.post-type-archive-product div#wc-column-container {
        display: none;
    }
  • Thank you Ying!
    While hiding duplicate products with CSS fixes the visual issue, it can create accessibility and SEO problems, right?

    What is the specific question I should be asking the woo-commerce team?
    All I want is not to have repetitive products on the shop page, and people to be able to see only products belonging to one specific category (even if they are also in another category).

  • While hiding duplicate products with CSS fixes the visual issue, it can create accessibility and SEO problems, right?

    Probably, I’m not sure about this.

    What is the specific question I should be asking the woo-commerce team?

    Just like what you’ve asked us, they should understand the question well.

    All I want is not to have repetitive products on the shop page, and people to be able to see only products belonging to one specific category (even if they are also in another category).

    Are you using the Products (beta) block on the shop page? If so, you can choose a category for the products.
    https://app.screencast.com/YJT4ko2ymcXnN

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.