{"id":7699,"date":"2025-02-28T13:40:20","date_gmt":"2025-02-28T13:40:20","guid":{"rendered":"https:\/\/www.leadshook.com\/help\/?p=7699"},"modified":"2025-02-28T13:40:21","modified_gmt":"2025-02-28T13:40:21","slug":"how-to-hide-the-header-and-footer-on-a-custom-page-node","status":"publish","type":"post","link":"https:\/\/www.leadshook.com\/help\/how-to-hide-the-header-and-footer-on-a-custom-page-node\/","title":{"rendered":"How to hide the header and footer on a custom page node"},"content":{"rendered":"\n<p><strong>You can add this script in your custom page node to hide the header and footer<\/strong><\/p>\n\n\n\n<p><strong>Run on Enter<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;script>\n        document.getElementById(\"header-editor-preview\").style.display = \"none\";\n        document.getElementById(\"footer-editor-preview\").style.display = \"none\";\n        document.querySelector(\".header-container\").style.display = \"none\";\n        document.querySelector(\".footer-container\").style.display = \"none\";\n&lt;\/script><\/code><\/pre>\n\n\n\n<p><strong>Run on Exit<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;script>\n  setTimeout(() => {\n    document.getElementById(\"header-editor-preview\").style.display = \"block\";\n    document.getElementById(\"footer-editor-preview\").style.display = \"block\";\n    document.querySelector(\".header-container\").style.display = \"block\";\n    document.querySelector(\".footer-container\").style.display = \"block\";\n  }, 500);\n&lt;\/script><\/code><\/pre>\n\n\n\n<p><strong>See example decision tree here:<\/strong><\/p>\n\n\n\n<div class=\"wp-block-file\"><a id=\"wp-block-file--media-0c5b2e15-e091-438f-b258-98a5e59cae2f\" href=\"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2025\/02\/hide-header-and-footer-in-custom-page-node_2025-02-28.zip\">hide-header-and-footer-in-custom-page-node_2025-02-28<\/a><a href=\"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2025\/02\/hide-header-and-footer-in-custom-page-node_2025-02-28.zip\" class=\"wp-block-file__button wp-element-button\" download aria-describedby=\"wp-block-file--media-0c5b2e15-e091-438f-b258-98a5e59cae2f\">Download<\/a><\/div>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can add this script in your custom page node to hide the header and footer Run on Enter Run on Exit See example decision tree here:<\/p>\n","protected":false},"author":14,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[1087,1088,484],"class_list":["post-7699","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-custom-script","tag-footer","tag-hide"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to hide the header and footer on a custom page node - LeadsHook Knowledge Base<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.leadshook.com\/help\/how-to-hide-the-header-and-footer-on-a-custom-page-node\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to hide the header and footer on a custom page node - LeadsHook Knowledge Base\" \/>\n<meta property=\"og:description\" content=\"You can add this script in your custom page node to hide the header and footer Run on Enter Run on Exit See example decision tree here:\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.leadshook.com\/help\/how-to-hide-the-header-and-footer-on-a-custom-page-node\/\" \/>\n<meta property=\"og:site_name\" content=\"LeadsHook Knowledge Base\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/leadshook\/\" \/>\n<meta property=\"article:published_time\" content=\"2025-02-28T13:40:20+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-02-28T13:40:21+00:00\" \/>\n<meta name=\"author\" content=\"Von\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@leadshook\" \/>\n<meta name=\"twitter:site\" content=\"@leadshook\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Von\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.leadshook.com\/help\/how-to-hide-the-header-and-footer-on-a-custom-page-node\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.leadshook.com\/help\/how-to-hide-the-header-and-footer-on-a-custom-page-node\/\"},\"author\":{\"name\":\"Von\",\"@id\":\"https:\/\/www.leadshook.com\/help\/#\/schema\/person\/646557edf0c248393812c53a8ce7fe8b\"},\"headline\":\"How to hide the header and footer on a custom page node\",\"datePublished\":\"2025-02-28T13:40:20+00:00\",\"dateModified\":\"2025-02-28T13:40:21+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.leadshook.com\/help\/how-to-hide-the-header-and-footer-on-a-custom-page-node\/\"},\"wordCount\":43,\"publisher\":{\"@id\":\"https:\/\/www.leadshook.com\/help\/#organization\"},\"keywords\":[\"custom script\",\"footer\",\"hide\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.leadshook.com\/help\/how-to-hide-the-header-and-footer-on-a-custom-page-node\/\",\"url\":\"https:\/\/www.leadshook.com\/help\/how-to-hide-the-header-and-footer-on-a-custom-page-node\/\",\"name\":\"How to hide the header and footer on a custom page node - LeadsHook Knowledge Base\",\"isPartOf\":{\"@id\":\"https:\/\/www.leadshook.com\/help\/#website\"},\"datePublished\":\"2025-02-28T13:40:20+00:00\",\"dateModified\":\"2025-02-28T13:40:21+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.leadshook.com\/help\/how-to-hide-the-header-and-footer-on-a-custom-page-node\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.leadshook.com\/help\/how-to-hide-the-header-and-footer-on-a-custom-page-node\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.leadshook.com\/help\/how-to-hide-the-header-and-footer-on-a-custom-page-node\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.leadshook.com\/help\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to hide the header and footer on a custom page node\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.leadshook.com\/help\/#website\",\"url\":\"https:\/\/www.leadshook.com\/help\/\",\"name\":\"LeadsHook Knowledge Base\",\"description\":\"LeadsHook Training &amp; Technical Help\",\"publisher\":{\"@id\":\"https:\/\/www.leadshook.com\/help\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.leadshook.com\/help\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.leadshook.com\/help\/#organization\",\"name\":\"LeadsHook\",\"url\":\"https:\/\/www.leadshook.com\/help\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.leadshook.com\/help\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2018\/12\/leadshook-logo.png\",\"contentUrl\":\"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2018\/12\/leadshook-logo.png\",\"width\":350,\"height\":83,\"caption\":\"LeadsHook\"},\"image\":{\"@id\":\"https:\/\/www.leadshook.com\/help\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/leadshook\/\",\"https:\/\/x.com\/leadshook\",\"https:\/\/www.linkedin.com\/showcase\/leadshook\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.leadshook.com\/help\/#\/schema\/person\/646557edf0c248393812c53a8ce7fe8b\",\"name\":\"Von\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/4d8c9fa6fa4af8da43fe4d69a7bddaddadc9d1f7fbaf9363aee7d9187dee60cd?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/4d8c9fa6fa4af8da43fe4d69a7bddaddadc9d1f7fbaf9363aee7d9187dee60cd?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/4d8c9fa6fa4af8da43fe4d69a7bddaddadc9d1f7fbaf9363aee7d9187dee60cd?s=96&d=mm&r=g\",\"caption\":\"Von\"},\"url\":\"https:\/\/www.leadshook.com\/help\/author\/voncs-leadshook-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to hide the header and footer on a custom page node - LeadsHook Knowledge Base","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.leadshook.com\/help\/how-to-hide-the-header-and-footer-on-a-custom-page-node\/","og_locale":"en_US","og_type":"article","og_title":"How to hide the header and footer on a custom page node - LeadsHook Knowledge Base","og_description":"You can add this script in your custom page node to hide the header and footer Run on Enter Run on Exit See example decision tree here:","og_url":"https:\/\/www.leadshook.com\/help\/how-to-hide-the-header-and-footer-on-a-custom-page-node\/","og_site_name":"LeadsHook Knowledge Base","article_publisher":"https:\/\/www.facebook.com\/leadshook\/","article_published_time":"2025-02-28T13:40:20+00:00","article_modified_time":"2025-02-28T13:40:21+00:00","author":"Von","twitter_card":"summary_large_image","twitter_creator":"@leadshook","twitter_site":"@leadshook","twitter_misc":{"Written by":"Von","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.leadshook.com\/help\/how-to-hide-the-header-and-footer-on-a-custom-page-node\/#article","isPartOf":{"@id":"https:\/\/www.leadshook.com\/help\/how-to-hide-the-header-and-footer-on-a-custom-page-node\/"},"author":{"name":"Von","@id":"https:\/\/www.leadshook.com\/help\/#\/schema\/person\/646557edf0c248393812c53a8ce7fe8b"},"headline":"How to hide the header and footer on a custom page node","datePublished":"2025-02-28T13:40:20+00:00","dateModified":"2025-02-28T13:40:21+00:00","mainEntityOfPage":{"@id":"https:\/\/www.leadshook.com\/help\/how-to-hide-the-header-and-footer-on-a-custom-page-node\/"},"wordCount":43,"publisher":{"@id":"https:\/\/www.leadshook.com\/help\/#organization"},"keywords":["custom script","footer","hide"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.leadshook.com\/help\/how-to-hide-the-header-and-footer-on-a-custom-page-node\/","url":"https:\/\/www.leadshook.com\/help\/how-to-hide-the-header-and-footer-on-a-custom-page-node\/","name":"How to hide the header and footer on a custom page node - LeadsHook Knowledge Base","isPartOf":{"@id":"https:\/\/www.leadshook.com\/help\/#website"},"datePublished":"2025-02-28T13:40:20+00:00","dateModified":"2025-02-28T13:40:21+00:00","breadcrumb":{"@id":"https:\/\/www.leadshook.com\/help\/how-to-hide-the-header-and-footer-on-a-custom-page-node\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.leadshook.com\/help\/how-to-hide-the-header-and-footer-on-a-custom-page-node\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.leadshook.com\/help\/how-to-hide-the-header-and-footer-on-a-custom-page-node\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.leadshook.com\/help\/"},{"@type":"ListItem","position":2,"name":"How to hide the header and footer on a custom page node"}]},{"@type":"WebSite","@id":"https:\/\/www.leadshook.com\/help\/#website","url":"https:\/\/www.leadshook.com\/help\/","name":"LeadsHook Knowledge Base","description":"LeadsHook Training &amp; Technical Help","publisher":{"@id":"https:\/\/www.leadshook.com\/help\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.leadshook.com\/help\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.leadshook.com\/help\/#organization","name":"LeadsHook","url":"https:\/\/www.leadshook.com\/help\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.leadshook.com\/help\/#\/schema\/logo\/image\/","url":"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2018\/12\/leadshook-logo.png","contentUrl":"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2018\/12\/leadshook-logo.png","width":350,"height":83,"caption":"LeadsHook"},"image":{"@id":"https:\/\/www.leadshook.com\/help\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/leadshook\/","https:\/\/x.com\/leadshook","https:\/\/www.linkedin.com\/showcase\/leadshook\/"]},{"@type":"Person","@id":"https:\/\/www.leadshook.com\/help\/#\/schema\/person\/646557edf0c248393812c53a8ce7fe8b","name":"Von","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4d8c9fa6fa4af8da43fe4d69a7bddaddadc9d1f7fbaf9363aee7d9187dee60cd?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4d8c9fa6fa4af8da43fe4d69a7bddaddadc9d1f7fbaf9363aee7d9187dee60cd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4d8c9fa6fa4af8da43fe4d69a7bddaddadc9d1f7fbaf9363aee7d9187dee60cd?s=96&d=mm&r=g","caption":"Von"},"url":"https:\/\/www.leadshook.com\/help\/author\/voncs-leadshook-com\/"}]}},"_links":{"self":[{"href":"https:\/\/www.leadshook.com\/help\/wp-json\/wp\/v2\/posts\/7699","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.leadshook.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.leadshook.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.leadshook.com\/help\/wp-json\/wp\/v2\/users\/14"}],"replies":[{"embeddable":true,"href":"https:\/\/www.leadshook.com\/help\/wp-json\/wp\/v2\/comments?post=7699"}],"version-history":[{"count":1,"href":"https:\/\/www.leadshook.com\/help\/wp-json\/wp\/v2\/posts\/7699\/revisions"}],"predecessor-version":[{"id":7701,"href":"https:\/\/www.leadshook.com\/help\/wp-json\/wp\/v2\/posts\/7699\/revisions\/7701"}],"wp:attachment":[{"href":"https:\/\/www.leadshook.com\/help\/wp-json\/wp\/v2\/media?parent=7699"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.leadshook.com\/help\/wp-json\/wp\/v2\/categories?post=7699"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.leadshook.com\/help\/wp-json\/wp\/v2\/tags?post=7699"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}