How to Hide or Remove Unused Cookie Categories in CookieYes
Content
Many users of the 'CookieYes – Cookie Banner for Cookie Consent' plugin find that their cookie banner or settings modal displays categories that are empty or not in use. This can clutter the user interface and potentially confuse visitors. This guide explains why this happens and the methods available to clean up your cookie category list.
Why Empty Categories Appear
The plugin is designed to be comprehensive and often includes several pre-defined cookie categories (like Analytics, Performance, Advertisement, etc.) by default to align with GDPR guidelines. After a cookie scan, if no cookies are found for a specific category, it will appear empty. The method for managing these empty categories depends on which version of the plugin interface you are using.
Solution 1: Hiding Categories (Plugin Version 3.0 and Newer)
Starting from version 3.0, the plugin introduced a feature to hide categories without deleting them. This is often the preferred method as it allows you to easily bring a category back later if needed.
- In your WordPress admin dashboard, navigate to Cookie Banner.
- Click on the General tab.
- Find and click Show advanced options.
- Scroll down to the option labeled Hide cookie categories from the banner.
- Select the checkbox next to each empty category you wish to hide (e.g., Performance, Advertisement).
- Save your changes. The selected categories will no longer be visible to your site visitors.
Solution 2: Deleting Categories
If you are certain you will never need a specific category, you can choose to delete it entirely. This is a permanent action.
- Navigate to GDPR Cookie Consent > Cookie Category.
- Find the unused category (e.g., "Performance").
- Hover over its name and click Delete.
- It is also recommended to check the Cookie List and delete any individual cookie entries that were associated with that category to ensure a complete cleanup.
Note: As confirmed by user reports, deleting a category and its associated cookies from the list will successfully stop the plugin from setting the corresponding checkbox cookie (e.g., `cookielawinfo-checkbox-performance`).
What If I Don't See the 'Cookie Category' Menu?
If your plugin menu still shows the old "Necessary" and "Non-necessary" sections instead of the dynamic "Cookie Category" menu, your site may need a database migration to access the new features.
- Go to GDPR Cookie Consent > Cookie Scanner.
- Look for a button or link labeled Migrate database or Migrate cookie categories.
- Click it to update your plugin's database structure. This should generate the new categories and menu options.
Conclusion
Whether you choose to hide or delete unused cookie categories, the 'CookieYes – Cookie Banner for Cookie Consent' plugin provides ways to create a cleaner and more user-friendly cookie consent experience. For most users on modern versions of the plugin, the hide function within the Cookie Banner's advanced settings is the simplest and most flexible solution.
Related Support Threads Support
-
Migrate Cookie Categorieshttps://wordpress.org/support/topic/migrate-cookie-categories/
-
Necessary and Non Necessary Categoryhttps://wordpress.org/support/topic/necessary-and-non-necessary-category/
-
Can’t save any changes in cookie categorieshttps://wordpress.org/support/topic/cant-save-any-changes-3/
-
Can’t View Category Listhttps://wordpress.org/support/topic/cant-view-category-list/
-
Cookies category submenu does not appearhttps://wordpress.org/support/topic/cookies-category-submenu-does-not-appear/
-
Category attributeshttps://wordpress.org/support/topic/category-attributes-2/
-
order cookie categorieshttps://wordpress.org/support/topic/order-cookie-categories/
-
Changes in Version 3.0https://wordpress.org/support/topic/changes-in-version-3-0/
-
Removing the plugin’s category cookieshttps://wordpress.org/support/topic/removing-the-plugins-category-cookies/
-
Show Only Non-empty Categorieshttps://wordpress.org/support/topic/show-only-non-empty-categories/
-
Cookie categorieshttps://wordpress.org/support/topic/cookie-categories-2/
-
General questionshttps://wordpress.org/support/topic/general-questions-22/
-
Hiding unused categorwshttps://wordpress.org/support/topic/hiding-unused-categorws/
-
Cookie categories not showing up backendhttps://wordpress.org/support/topic/cookie-categories-not-showing-up-backend/
-
cookie optionshttps://wordpress.org/support/topic/cookie-options-2/
-
Necessary Cookie list does not displayhttps://wordpress.org/support/topic/necessary-cookie-list-does-not-display/
-
List of Necessary Cookies under descriptionhttps://wordpress.org/support/topic/list-of-necessary-cookies-under-description/
-
New Cookie Categoryhttps://wordpress.org/support/topic/new-cookie-category/
-
Move admin menu item to bottom of sidebarhttps://wordpress.org/support/topic/move-admin-menu-item-to-bottom-of-sidebar/
-
Manage the settings plugin without being adminhttps://wordpress.org/support/topic/manage-the-settings-plugin-without-being-admin/
-
Necessary cookies – settingshttps://wordpress.org/support/topic/necessary-cookies-settings/
-
Cookies categoryhttps://wordpress.org/support/topic/cookies-category/
-
Category queue and switch on/offhttps://wordpress.org/support/topic/category-queue-and-switch-on-off/
-
Necessary and Non-necessary optionshttps://wordpress.org/support/topic/necessary-and-non-necessary-options/
-
Can I reclassify a cookie?https://wordpress.org/support/topic/can-i-reclassify-a-cookie/
-
Sorting feature unavailablehttps://wordpress.org/support/topic/sorting-feature-unavailable/