• Resolved ilyapokrov

    (@ilyapokrov)


    How can I delete all categories on the main page of the store? In the settings, I see only the display – categories, product, categories and products.
    I want to make my own custom page and display what I need. How do I remove the standard output of all items on this page?

    • This topic was modified 3 years, 11 months ago by ilyapokrov.

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Support Senff

    (@senff)

    Hey @ilyapokrov

    To create your own custom homepage, create a brand new page and publish it. Then go to WP Admin → Settings → Reading and select the new page you created from the Homepage setting.

    can you share page link for more clarity on the issue?

    Thread Starter ilyapokrov

    (@ilyapokrov)

    @senff,
    I didn’t ask about that) I know how to specify an arbitrary page.
    The problem is that this custom page displays product categories by default. In this case, it shows only the main categories, and the child ones are not displayed.
    This is bad.
    I need to remove all this structure by default and write in the following form

    The title of the first parent category.
    Block 1, Block 2, Block 3, etc.

    The title of the second parent category.
    Block 1, Block 2, Block 3, etc.

    @hassanzafar107,
    Help me please)

    • This reply was modified 3 years, 11 months ago by ilyapokrov.

    I used:

    .wc-shop-page .wc-columns-container {
    display:none;
    }

    Thread Starter ilyapokrov

    (@ilyapokrov)

    @seank123,
    This is not a solution to the problem. In this case, they are displayed, but hidden. The code is loaded on the site and slows down the site loading time.

    I advise you to redo it) Now experienced specialists will definitely help us and we will solve this problem together!

    True but in my case the speed difference is not noticeable!

    You could try and override the following template: https://github.com/woocommerce/woocommerce/blob/release/4.7/templates/archive-product.php

    Thread Starter ilyapokrov

    (@ilyapokrov)

    @seank123,
    I don’t know much about the code.
    I understand that you need to write a function, something like:
    If it is is_shop, then remove category output

    Thread Starter ilyapokrov

    (@ilyapokrov)

    @senff,
    Are you going to answer the question?
    Or are you only needed to give useless replies ?!

    Plugin Support Missy a11n

    (@m155y5)

    Automattic Happiness Engineer

    @ilyapokrov – Please be gentle, we are all trying to help here. ??

    If you don’t wish to code, you can use our free WooCommerce Blocks plugin to add WooCommerce functionality to the block editor on the page.

    Using blocks on a page, I was able to create the page in this order within a few minutes:

    Category 1
    product, product, product

    Category 2
    product, product, product

    Plugin Support abwaita a11n

    (@abwaita)

    Hi @ilyapokrov,

    There’s not been much activity here for a while, so I’m marking this thread as resolved. Hopefully, you were able to find a solution to your problem.

    If you have further questions, please feel free to open a new topic.

    Thanks.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Remove all categories on the homepage.’ is closed to new replies.