{"id":6909,"date":"2025-09-23T11:38:12","date_gmt":"2025-09-23T06:08:12","guid":{"rendered":"https:\/\/holithemes.com\/plugins\/click-to-chat\/?p=6909"},"modified":"2026-10-05T15:09:51","modified_gmt":"2026-10-05T09:39:51","slug":"how-to-show-or-hide-the-chat-widget-based-on-category","status":"publish","type":"post","link":"https:\/\/holithemes.com\/plugins\/click-to-chat\/how-to-show-or-hide-the-chat-widget-based-on-category\/","title":{"rendered":"How to Show or Hide the Chat Widget Based on Category"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">We can now set the Click to Chat widget display based on categories. Simply enter the category names, separated by commas ( , ).<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Show the Widget Only on Selected Categories<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">To display the widget only on posts belonging to certain categories:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Navigate to <strong>Click to Chat \u2192 Display \u2192 Pages \u2192 Page\/Category Lists<\/strong>.<\/li>\n\n\n\n<li>Set <strong>Global Display<\/strong> to <strong>Hide<\/strong>.<\/li>\n\n\n\n<li>Locate <strong>Show on this Category posts (by name)<\/strong>.\n<ul class=\"wp-block-list\">\n<li>Example: <code>WooCommerce, Styles<\/code><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Click save Changes<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img decoding=\"async\" width=\"496\" height=\"122\" src=\"https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-content\/uploads\/2025\/09\/category-names-display.webp\" alt=\"\" class=\"wp-image-7648\" srcset=\"https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-content\/uploads\/2025\/09\/category-names-display.webp 496w, https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-content\/uploads\/2025\/09\/category-names-display-300x74.webp 300w\" sizes=\"(max-width: 496px) 100vw, 496px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This setup hides the widget everywhere by default and shows it only on posts in the specified categories.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Hide the Widget Only on Selected Categories<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">To show the widget on most pages but hide it on posts from certain categories:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Navigate to <strong>Click to Chat \u2192 Display \u2192 Pages \u2192 Page\/Category Lists<\/strong>.<\/li>\n\n\n\n<li>Set <strong>Global Display<\/strong> to <strong>Show<\/strong>.<\/li>\n\n\n\n<li>Locate <strong>Hide on this Category posts (by name)<\/strong>.<\/li>\n\n\n\n<li>Enter the category names where we want to hide the widget.\n<ul class=\"wp-block-list\">\n<li>Example: <code>Click to Chat Pro, Display Settings<\/code><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Click Save Changes.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img decoding=\"async\" width=\"494\" height=\"105\" src=\"https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-content\/uploads\/2025\/09\/hide-on-category-display.webp\" alt=\"\" class=\"wp-image-7649\" srcset=\"https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-content\/uploads\/2025\/09\/hide-on-category-display.webp 494w, https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-content\/uploads\/2025\/09\/hide-on-category-display-300x64.webp 300w\" sizes=\"(max-width: 494px) 100vw, 494px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This setup enables the widget globally and excludes it only from the specified categories.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How to Find Category Names<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">From the WordPress Dashboard:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Go to Posts.<\/li>\n\n\n\n<li>Find the post and check its category in the <strong>Categories<\/strong> column.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"499\" src=\"https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-content\/uploads\/2026\/10\/how-to-find-categories-1-edited-1024x499.webp\" alt=\"\" class=\"wp-image-7653\" srcset=\"https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-content\/uploads\/2026\/10\/how-to-find-categories-1-edited-1024x499.webp 1024w, https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-content\/uploads\/2026\/10\/how-to-find-categories-1-edited-300x146.webp 300w, https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-content\/uploads\/2026\/10\/how-to-find-categories-1-edited-768x374.webp 768w, https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-content\/uploads\/2026\/10\/how-to-find-categories-1-edited.webp 1100w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Note down the category name exactly as it appears.<\/li>\n\n\n\n<li>Use that name in the Category section of Click to Chat to show or hide the widget.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>We can now set the Click to Chat widget display based on categories. Simply enter the category names, separated by commas ( , ). Show the Widget Only on Selected Categories To display the widget only on posts belonging to certain categories: This setup hides the widget everywhere by default and shows it only on [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":"","_htd2_assets":[]},"categories":[63],"tags":[],"class_list":["post-6909","post","type-post","status-publish","format-standard","hentry","category-display-settings"],"_links":{"self":[{"href":"https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-json\/wp\/v2\/posts\/6909","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-json\/wp\/v2\/comments?post=6909"}],"version-history":[{"count":2,"href":"https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-json\/wp\/v2\/posts\/6909\/revisions"}],"predecessor-version":[{"id":7654,"href":"https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-json\/wp\/v2\/posts\/6909\/revisions\/7654"}],"wp:attachment":[{"href":"https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-json\/wp\/v2\/media?parent=6909"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-json\/wp\/v2\/categories?post=6909"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-json\/wp\/v2\/tags?post=6909"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}