{"id":12797,"date":"2025-03-05T13:35:43","date_gmt":"2025-03-05T11:35:43","guid":{"rendered":"https:\/\/creativethemes.com\/blocksy\/?post_type=documentation&#038;p=12797"},"modified":"2025-03-05T17:31:31","modified_gmt":"2025-03-05T15:31:31","slug":"conditional-headers","status":"publish","type":"documentation","link":"https:\/\/creativethemes.com\/blocksy\/docs\/header-options\/conditional-headers\/","title":{"rendered":"Conditional Headers"},"content":{"rendered":"\n<p>Most websites maintain a consistent header design across all pages. This is standard practice, as the header typically contains essential navigation and branding elements that should remain accessible no matter where users are on the site.<\/p>\n\n\n\n<p>However, there are cases where a different header might be more effective. For instance, you may want a streamlined header for a&nbsp;<strong>landing page<\/strong>, a distraction-free layout for a&nbsp;<strong>checkout flow<\/strong>, or a unique design for&nbsp;<strong>specific sections<\/strong>&nbsp;of your website.<\/p>\n\n\n\n<p>This is where&nbsp;<strong>conditional headers<\/strong>&nbsp;come in. With this feature, you can create multiple header variations, each with its own design, settings, and elements. These headers can then be assigned to different parts of your website using&nbsp;<strong><a href=\"https:\/\/creativethemes.com\/blocksy\/docs\/modules\/conditions-module\/\" target=\"_blank\" rel=\"noreferrer noopener\">Blocksy\u2019s Conditional Module<\/a><\/strong>.<\/p>\n\n\n\n<p>Available in&nbsp;<strong>Blocksy Pro<\/strong>, conditional headers are easy to set up and manage, all from the place you\u2019re already familiar with \u2014 the <strong>Customiser<\/strong>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Getting Started<\/h2>\n\n\n\n<figure class=\"wp-block-video\"><video height=\"2056\" style=\"aspect-ratio: 3456 \/ 2056;\" width=\"3456\" autoplay loop muted preload=\"auto\" src=\"https:\/\/creativethemes.com\/blocksy\/wp-content\/uploads\/2025\/03\/Screen-Recording-2025-03-05-at-13.49.45.mov\" playsinline><\/video><figcaption class=\"wp-element-caption\">Creating a conditional header.<\/figcaption><\/figure>\n\n\n\n<p>Setting up a conditional header is quick and straightforward. Simply navigate to&nbsp;<strong>Customiser \u2192 Header \u2192 Headers tab<\/strong> and click the <strong>Create New Header<\/strong>&nbsp;button. A pop-up modal will appear, allowing you to name your new header. To make the process even easier, you can choose to copy the elements from an existing header, giving you a familiar starting point while still allowing full customisation.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Assigning Display Conditions<\/h2>\n\n\n\n<figure class=\"wp-block-video\"><video height=\"2056\" style=\"aspect-ratio: 3456 \/ 2056;\" width=\"3456\" autoplay loop muted src=\"https:\/\/creativethemes.com\/blocksy\/wp-content\/uploads\/2025\/03\/Screen-Recording-2025-03-05-at-13.57.26.mov\" playsinline><\/video><figcaption class=\"wp-element-caption\">Header display conditions.<\/figcaption><\/figure>\n\n\n\n<p>After creating a new header, it will appear as an entry under the&nbsp;<strong>Headers<\/strong>&nbsp;tab. Clicking on it selects it as the active header for editing, allowing you to configure its design and settings.<\/p>\n\n\n\n<p>To determine where this header appears, you\u2019ll use&nbsp;<strong>display conditions<\/strong>&nbsp;powered by Blocksy\u2019s&nbsp;<strong>conditional module<\/strong>. This system lets you assign headers to specific areas of your website, such as individual pages, posts, product archives, or even dynamic conditions like posts from a particular taxonomy. You can also set headers to appear based on a visitor\u2019s referral URL, making it a powerful tool for tailoring the user experience.<\/p>\n\n\n\n<p>For a detailed breakdown of available conditions, we recommend checking out our dedicated&nbsp;<strong>Conditional Module<\/strong> <a href=\"https:\/\/creativethemes.com\/blocksy\/docs\/modules\/conditions-module\/\" target=\"_blank\" rel=\"noreferrer noopener\">documentation<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Global Header Addendum<\/h2>\n\n\n\n<p>It\u2019s important to note that the&nbsp;<strong>Global Header<\/strong>&nbsp;cannot be completely removed or assigned specific display conditions. It serves as the default fallback header for your website. However, you can easily override it by creating additional headers and applying display conditions to them. This allows you to customise the header experience for different parts of your site while ensuring a consistent default is always in place.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Video Resources<\/h2>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-4-3 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Exploring Conditional Headers | Blocksy Premium\" width=\"1290\" height=\"968\" src=\"https:\/\/www.youtube.com\/embed\/hzmiZ15BarU?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Most websites maintain a consistent header design across all pages. This is standard practice, as the header typically contains essential navigation and branding elements that should remain accessible no matter where users are on the site. However, there are cases where a different header might be more effective. For instance, you may want a streamlined [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"doc_categories":[123],"class_list":["post-12797","documentation","type-documentation","status-publish","hentry","doc_categories-header-options"],"blocksy_meta":{"docs_item_badge":"PRO","styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":6}},"acf":[],"_links":{"self":[{"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/documentation\/12797","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/documentation"}],"about":[{"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/types\/documentation"}],"author":[{"embeddable":true,"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/comments?post=12797"}],"version-history":[{"count":8,"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/documentation\/12797\/revisions"}],"predecessor-version":[{"id":12817,"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/documentation\/12797\/revisions\/12817"}],"wp:attachment":[{"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/media?parent=12797"}],"wp:term":[{"taxonomy":"doc_categories","embeddable":true,"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/doc_categories?post=12797"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}