Restrict Product Categories page to stop displaying few categories

This topic has 12 replies, 3 voices, and was last updated 3 months, 2 weeks ago ago by Rose Tyler

  • Avatar: Mitul
    Mitul
    Participant
    January 13, 2024 at 08:42

    Hi

    See here https://obxgourmet.com/product-category/chocolates-sweets/
    This type of category pages display list of all categories on left.

    I dont want to display 2 categories (All Gift Baskets, Wrapping). Is it possible to turn of displaying of particular categories to that list?

    Thanks.

    11 Answers
    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    January 13, 2024 at 13:28

    Hello, @Mitul,

    We are pleased to confirm that your requirement can be achieved through the application of custom CSS code.

    Kindly utilize the following CSS snippet, ensuring that you replace ‘your-specific-page-class’ with the class that corresponds to the page you wish to target:

    .term-chocolates-sweets ul.product-categories li.cat-item.cat-item-15 {
        display: none !important;
    }

    Once you have made the necessary adjustments, please proceed to save your settings. We trust that this solution will effectively address your issue.

    For your convenience, we have included a visual reference as an attachment to assist you in this process. https://imgur.com/IDEo8Gk and https://imgur.com/3fnVjHm

    Should you require any further assistance, please do not hesitate to reach out.

    Warm regards,
    The 8Theme Team

    Avatar: Mitul
    Mitul
    Participant
    January 17, 2024 at 15:36

    Hi,

    That link i gave was for example. I want global change to all categories.

    So that all category view pages dont display “Wrapping” category.

    See here https://prnt.sc/URALdFpSih9A – i dont want to display that red one, on that category list.

    Please let me know how do you do that, after you make changes.

    Thanks.

    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    January 18, 2024 at 06:00

    Hello,

    Thank you for bringing this to our attention. We understand your request to globally exclude certain categories from the shop sidebar. To achieve this, please follow the steps below:

    a)Navigate to your WordPress Dashboard.
    b)Click on “WooCommerce” in the left-hand menu.
    c)Select “Products” and then choose “Categories.”

    Once you are in the Categories section, you will see a list of all your product categories. To exclude the “Wrapping” category, please locate it in the list.

    Next, hover over the “Wrapping” category, and you should see an option to delete or remove it. Click on that option to remove the category.

    For visual reference: https://imgur.com/a/cqn8g5s

    By doing this, you will globally exclude the “Wrapping” category from all category view pages, as requested.

    After making these changes, please check the shop sidebar, and the “Wrapping” category should no longer be displayed.

    Feel free to reach out if you have any further questions or if there’s anything else we can assist you with.

    Yours sincerely,
    The 8Themes Team

    Avatar: Mitul
    Mitul
    Participant
    January 19, 2024 at 01:02

    Hi

    Thank you for the detailed explanation.

    While hovering over the category, it only shows an option “Delete” which will delete the category.

    There is no option “Remove”.

    I dont want to delete the category. I just dont want it to appear on the category page.

    Please check yourself and provide a solution.

    Thank you.

    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    January 19, 2024 at 07:58

    Hello, @Mitul,

    Thank you for your response.

    We are delighted to inform you that the issue you reported has been successfully resolved. To hide the “Wrapping” category from the shop sidebar’s Category widget, we have implemented the following CSS code:

    .widget_product_categories.sidebar-widget ul li.cat-item.cat-item-66 {
        display: none !important;
    }

    This code has been added to your website’s theme settings under XStore >> Theme Setting >> Theme Custom CSS >> Global CSS.

    Additionally, we have provided a visual guide to assist you with this update. You can view the reference image by following this link: https://imgur.com/a/3tg0mqN & https://imgur.com/a/ZT9BN17

    Should you need any further support or have any questions, please feel free to contact us at your earliest convenience.

    Warm regards,
    The 8Themes Team

    Avatar: Mitul
    Mitul
    Participant
    January 19, 2024 at 11:33

    Hi

    Thank you so much.

    Isnt there anyway to do this in wp-admin through product categories?

    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    January 19, 2024 at 11:47

    Hello, @Mitul,

    Thank you for your response.

    Regrettably, we must inform you that it is not possible to accomplish this task through the wp-admin using product categories.

    Thank you for your understanding.

    Have a great day!

    Kind regards,
    The 8Theme Team

    Avatar: Mitul
    Mitul
    Participant
    January 20, 2024 at 04:12

    Ok, so to do this through that Custom CSS, I must know the ID of that category right?

    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    January 20, 2024 at 07:17

    Hello, @Mitul,

    Yes, to customize the previously provided Custom CSS you need to know the ID of the specific Category you want to modify. https://imgur.com/ZA2XPrA

    We hope this helps.

    If you have any additional questions or concerns, please do not hesitate to reach out to us. Our support team is always available to assist you.

    Yours sincerely,
    The 8Themes Team.

    Avatar: Mitul
    Mitul
    Participant
    January 20, 2024 at 15:33

    I cant make it to work. I opened INSPECT window. But nothing shown when i did hover over category. When i clicked, it just navigated to its page.

    Please advice, how exactly to know the ID using that INSPECT window.

    Thanks.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    January 21, 2024 at 10:33

    Hello, @Mitul,

    Thank you for getting in touch with us.

    Please watch the video we recorded for you – https://we.tl/t-IDp3IN7p9c

    Yours sincerely,
    The 8Themes Team.

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