{"id":6591,"date":"2025-05-28T17:41:59","date_gmt":"2025-05-28T12:11:59","guid":{"rendered":"https:\/\/holithemes.com\/plugins\/click-to-chat\/?p=6591"},"modified":"2025-08-05T11:54:08","modified_gmt":"2025-08-05T06:24:08","slug":"how-to-show-or-hide-the-chat-widget-based-on-post-id","status":"publish","type":"post","link":"https:\/\/holithemes.com\/plugins\/click-to-chat\/how-to-show-or-hide-the-chat-widget-based-on-post-id\/","title":{"rendered":"How to Show or Hide the Chat Widget Based on Post ID"},"content":{"rendered":"\n<p>In the Click to Chat plugin, we can hide\/show the widget on specific posts by entering their Post IDs. Simply add the Post IDs, separated by commas ( , ).<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Show the Widget Only on Selected Posts<\/h4>\n\n\n\n<p>To display the widget only on certain posts or pages, follow these steps:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Navigate to&nbsp;<strong>Click to Chat<\/strong>&nbsp;\u2192&nbsp;<strong>Display Settings<\/strong>.<\/li>\n\n\n\n<li>Under the Global section, select Hide on all pages.<\/li>\n\n\n\n<li>Scroll down to the Post IDs section.<\/li>\n\n\n\n<li class=\"How-to-find-post-id\">Enter the Post IDs where you want the widget to appear.<br>For example:\u00a0<code>21, 34, 78<\/code>\u00a0\u2013\u00a0<a href=\"https:\/\/holithemes.com\/plugins\/click-to-chat\/how-to-show-or-hide-the-chat-widget-based-on-post-id\/#How-to-find-post-id\">How to Find Post ID<\/a><\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img decoding=\"async\" width=\"516\" height=\"163\" src=\"https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-content\/uploads\/2025\/05\/show-on-specific-post.webp\" alt=\"\" class=\"wp-image-6737\" srcset=\"https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-content\/uploads\/2025\/05\/show-on-specific-post.webp 516w, https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-content\/uploads\/2025\/05\/show-on-specific-post-300x95.webp 300w\" sizes=\"(max-width: 516px) 100vw, 516px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Click Save Changes.<\/li>\n<\/ul>\n\n\n\n<p>This setup hides the widget by default and shows it only on the specified posts\/pages.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Hide the Widget only on Selected Posts<\/h4>\n\n\n\n<p>To show the widget on most pages but hide it on specific ones, follow these steps:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Navigate to&nbsp;<strong>Click to Chat<\/strong>&nbsp;\u2192&nbsp;<strong>Display Settings<\/strong>.<\/li>\n\n\n\n<li>Under the Global section, select Show on all pages.<\/li>\n\n\n\n<li>Scroll down to the Post IDs section.<\/li>\n\n\n\n<li class=\"How-to-find-post-id\">Enter the Post IDs where you want to hide the widget.<br>For example:\u00a0<code>11, 56, 90<\/code>\u00a0\u2013\u00a0<a href=\"https:\/\/holithemes.com\/plugins\/click-to-chat\/how-to-show-or-hide-the-chat-widget-based-on-post-id\/#How-to-find-post-id\">How to Find Post ID<\/a><\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img decoding=\"async\" width=\"512\" height=\"140\" src=\"https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-content\/uploads\/2025\/05\/hide-on-specific-post-.webp\" alt=\"\" class=\"wp-image-6738\" srcset=\"https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-content\/uploads\/2025\/05\/hide-on-specific-post-.webp 512w, https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-content\/uploads\/2025\/05\/hide-on-specific-post--300x82.webp 300w\" sizes=\"(max-width: 512px) 100vw, 512px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Click Save Changes.<\/li>\n<\/ul>\n\n\n\n<p>This setup enables the widget globally and excludes it only from the specified posts\/pages.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"Global-Settings\"><\/h4>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"How-to-find-post-id\"><strong>How to Find Post ID:<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>From the WordPress Dashboard:\n<ul class=\"wp-block-list\">\n<li>Go to&nbsp;<strong>Posts<\/strong><\/li>\n\n\n\n<li>Hover over the title of the post or on edit.<\/li>\n\n\n\n<li>Look at the bottom-left corner of our browser; we will see a URL like&nbsp;<code>post=<\/code><strong>66<\/strong>. Here,&nbsp;<code>66<\/code>&nbsp;is the Post ID.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img decoding=\"async\" width=\"1024\" height=\"509\" src=\"https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-content\/uploads\/2025\/05\/Hover-On-Edit-1-1-1024x509.webp\" alt=\"\" class=\"wp-image-6739\" srcset=\"https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-content\/uploads\/2025\/05\/Hover-On-Edit-1-1-1024x509.webp 1024w, https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-content\/uploads\/2025\/05\/Hover-On-Edit-1-1-300x149.webp 300w, https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-content\/uploads\/2025\/05\/Hover-On-Edit-1-1-768x382.webp 768w, https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-content\/uploads\/2025\/05\/Hover-On-Edit-1-1-1536x764.webp 1536w, https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-content\/uploads\/2025\/05\/Hover-On-Edit-1-1-2048x1019.webp 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>From the Post Editor:<\/strong>\n<ul class=\"wp-block-list\">\n<li>Open the post we want to find the ID for.<\/li>\n\n\n\n<li>Check the URL in our browser\u2019s address bar.<\/li>\n\n\n\n<li>We will see something like&nbsp;<code>?post=66<\/code>. The number is our Post ID.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img decoding=\"async\" width=\"1024\" height=\"517\" src=\"https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-content\/uploads\/2025\/05\/Post-ID-in-URL-1-1024x517.webp\" alt=\"\" class=\"wp-image-6740\" srcset=\"https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-content\/uploads\/2025\/05\/Post-ID-in-URL-1-1024x517.webp 1024w, https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-content\/uploads\/2025\/05\/Post-ID-in-URL-1-300x152.webp 300w, https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-content\/uploads\/2025\/05\/Post-ID-in-URL-1-768x388.webp 768w, https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-content\/uploads\/2025\/05\/Post-ID-in-URL-1-1536x776.webp 1536w, https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-content\/uploads\/2025\/05\/Post-ID-in-URL-1-2048x1034.webp 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Notes<\/strong>: Ensure that we are entering the correct Post IDs to avoid any issues.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Use Case Ideas<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Show the widget only on our contact or pricing pages.<\/li>\n\n\n\n<li>Hide the widget on long-form blog posts to reduce distraction.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>In the Click to Chat plugin, we can hide\/show the widget on specific posts by entering their Post IDs. Simply add the Post IDs, separated by commas ( , ). Show the Widget Only on Selected Posts To display the widget only on certain posts or pages, follow these steps: This setup hides the widget [&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-6591","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\/6591","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=6591"}],"version-history":[{"count":0,"href":"https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-json\/wp\/v2\/posts\/6591\/revisions"}],"wp:attachment":[{"href":"https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-json\/wp\/v2\/media?parent=6591"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-json\/wp\/v2\/categories?post=6591"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-json\/wp\/v2\/tags?post=6591"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}