Hide "Uncategorized" in Search Categories

This topic has 18 replies, 4 voices, and was last updated 3 years ago ago by Olga Barlow

  • Avatar: psydelia
    psydelia
    Participant
    March 14, 2021 at 17:41

    Hello, im trying to hide the “uncategorized” item in the search bar
    There are 2 hidden products (subscription plans) inside there

    Please, contact administrator
    for this information.
    17 Answers
    Avatar: Robert Hall
    Robert Hall
    Support staff
    March 15, 2021 at 07:09

    Hello Psydelia

    Thank you so much for contacting us!

    Product category displays the products that added to this category. So, if you chose a few categories for the case product then just edit product and uncheck the Uncategorised category http://prntscr.com/oli23c

    If this doesn’t work or you have more questions, just let me know, and I’ll be happy to help!

    Robert Hall
    Customer Support

    Avatar: psydelia
    psydelia
    Participant
    March 16, 2021 at 19:44

    “Product category displays the products that added to this category”
    Well, the products inside the “uncategorized” category are hidden so it shouldn’t be visible for the users to choose it on the search menu (that’s why when you click on that category and click search you get “no products found”).
    If you see the image i attached woocommerce doesn’t show the “uncategorized” which is correct.The theme gets “uncategorized” on the search menu even if it has hidden products.
    I don’t want to choose a category on that specific product as it’s a subscription plan which is irrelevant to actual products.
    In any case, the search menu should NOT get categories that are empty or have invisible products (as woocomerce categories widget does correctly)

    Please contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    March 17, 2021 at 11:31

    Hello,

    Yes, you are right. Provide us with WP Dashboard and FTP access to your site to fix this issue or wait for the next theme update.

    Regards

    Avatar: psydelia
    psydelia
    Participant
    March 17, 2021 at 17:17

    here you go

    Please contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    March 18, 2021 at 12:07

    Hello,

    Thank you! I have passed your issue to our developers. I’ll inform you once they fix the problem.

    Regards

    Avatar: psydelia
    psydelia
    Participant
    April 2, 2021 at 19:00

    Hello, the issue was never fixed by developers neither with the theme update
    “Hello,

    Yes, you are right. Provide us with WP Dashboard and FTP access to your site to fix this issue or wait for the next theme update.

    Regards”

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 3, 2021 at 08:27

    Hello,

    Sorry for the long delay in answering. It was a more complicated question than we thought.
    Credentials are incorrect now. Please provide them one more time, and we will try one more time.

    Regards

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 7, 2021 at 09:43

    Hello,

    If you do not want to provide access, download search.php from this page – https://dropmefiles.com/iIQRR , and re-upload it into et-core-plugin/app/models/customizer/templates/header/parts folder, via FTP. Clear cache and check how it works.

    Regards

    Avatar: psydelia
    psydelia
    Participant
    April 17, 2021 at 15:23

    Sorry, I wasn’t online for a couple of days, i am adding you the new credentials.
    Also please let me know how to hide the prices of the products on the main page (screenshot attached)

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 18, 2021 at 07:40

    Hello,

    1) We can’t connect to FTP. Please re-upload search.php file – https://dropmefiles.com/4kr0u as was mentioned, or provide us with correct access.
    2) Use the next custom CSS code:

    .home .content-product .price {
        display: none;
    }

    Regards

    Avatar: psydelia
    psydelia
    Participant
    April 18, 2021 at 13:57

    Was able to upload it and cleared the cache but the problem insists. I am attaching FTP access.
    Also, something weird happened, when i go to customize the template to add the css code i get this message “The theme directory “light” does not exist.”

    Please contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    April 19, 2021 at 12:14

    Hello,

    1) Check the permissions of our FTP user, we can’t edit file https://prnt.sc/11p57u1

    2) I see that the default WooCommerce widget https://prnt.sc/11p611l also displays Uncategoried in the list https://prnt.sc/11p64lt even if Hide empty is checked.
    So, I think you need to solve this issue with the WooCommerce support team https://wordpress.org/support/plugin/woocommerce/ first and then reply back and we’ll proceed with the search.

    3) Do you add the CSS code to child theme style.css? Do you add CSS code after the existing header https://gyazo.com/27a687df58b5f79b07cb3a16dcef480b or instead of this?

    Regards

    Avatar: psydelia
    psydelia
    Participant
    April 19, 2021 at 13:15

    I’ve reset file permission so you can now edit the file
    This fixed the problem with the customizer and was able to add the css code
    Now for 2)
    I’ve created a new category named “Subscription plans” moved all the subscription products there and hide them.
    Woocommerce doesn’t show this category while it’s still visible on search categories

    Please contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    April 19, 2021 at 13:30

    Hello,

    Ok, thank you. This time FTP works. Passed issue to developers.

    Regards

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    April 19, 2021 at 15:28

    Hello,

    We found that if you choose the drop-down type for the product categories it also displays that category. So, we submitted request to WooCommerce https://github.com/woocommerce/woocommerce/issues/29716
    At this moment we can hide that category using CSS like temporary solution. What do you think?

    Regards

    Avatar: psydelia
    psydelia
    Participant
    April 20, 2021 at 16:30

    Sure Olga, let me know the CSS code if in the future I need to hide something else.

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    April 21, 2021 at 12:59

    Hello,

    Added the below custom to custom CSS

    .et_b_header-search.et_element-top-level select [value="subscription-plans"] {
        display: none;
    }

    It’s not very good solution but it’s a temporary fix till we get the answer from WooCommerce. You can also comment in that topic to speed them up.

    Regards

  • Viewing 18 results - 1 through 18 (of 18 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.