{"id":2073,"date":"2021-04-06T10:14:04","date_gmt":"2021-04-06T07:14:04","guid":{"rendered":"https:\/\/creativethemes.com\/blocksy\/?post_type=documentation&#038;p=2073"},"modified":"2025-06-19T23:21:01","modified_gmt":"2025-06-19T20:21:01","slug":"conditions-module","status":"publish","type":"documentation","link":"https:\/\/creativethemes.com\/blocksy\/docs\/modules\/conditions-module\/","title":{"rendered":"Conditional Module"},"content":{"rendered":"\n<p>The <strong>Conditional Module<\/strong> is a powerful tool that allows you to display specific parts of Blocksy only when certain conditions are met. This feature enables you to create highly dynamic websites, giving you the flexibility to tailor content and design elements, setting your site apart from the competition.<\/p>\n\n\n\n<p>You\u2019ll find the Conditional Module integrated into various areas of Blocksy, including:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Header<\/strong> Builder<\/li>\n\n\n\n<li><strong>Footer<\/strong> Builder<\/li>\n\n\n\n<li>Multiple <strong>Sidebars<\/strong><\/li>\n\n\n\n<li><strong>Content Blocks<\/strong><\/li>\n\n\n\n<li><strong>Trending Posts<\/strong> Extension<\/li>\n\n\n\n<li><strong>Shortcuts Bar<\/strong> Extension<\/li>\n\n\n\n<li>and more!<\/li>\n<\/ul>\n\n\n\n<p>Blocksy 2 also introduces enhancements that allow for even more advanced setups. You can now create complex relationships between conditions by grouping them with the <strong>AND<\/strong> condition, making it easier to set up sophisticated, multi-layered rules.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">More Details<\/h2>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;69e94721dd880&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"69e94721dd880\" class=\"wp-block-image size-full has-lightbox wp-lightbox-container\"><img decoding=\"async\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/creativethemes.com\/blocksy\/wp-content\/uploads\/2021\/04\/Screenshot-2023-05-23-at-18.33.22.png\" alt=\"\" class=\"wp-image-7175\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><figcaption class=\"wp-element-caption\">Example Conditional Module with the <strong>Advanced Mode<\/strong> turned on and grouped conditions.<\/figcaption><\/figure>\n\n\n\n<p>As you can see, the conditions manager has received significant enhancements. In the example below, the action is triggered if <strong>Condition A<\/strong> or <strong>Condition B + C<\/strong> are met. It\u2019s a straightforward setup that provides powerful flexibility.<\/p>\n\n\n\n<p>The available conditions can target a wide range of criteria, including:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Pages or Posts:<\/strong> Set conditions based on specific pages or post types.<\/li>\n\n\n\n<li><strong>Post Categories:<\/strong> Target posts within particular categories.<\/li>\n\n\n\n<li><strong>WooCommerce Products:<\/strong> Filter conditions by specific products.<\/li>\n\n\n\n<li><strong>User Status:<\/strong> Check if the user is logged in, logged out, or their specific role.<\/li>\n\n\n\n<li><strong>Date\/Time Range:<\/strong> Target content to display only within certain date and time intervals.<\/li>\n\n\n\n<li><strong>Recurring Days:<\/strong> Schedule conditions for recurring days of the week.<\/li>\n\n\n\n<li><strong>Referrer Source:<\/strong> Trigger conditions based on the referring website.<\/li>\n\n\n\n<li><strong>Cookies:<\/strong> Utilize conditions that depend on cookies set by the referrer.<\/li>\n\n\n\n<li><strong>Request URL:<\/strong> Target specific request URLs for even more precise control.<\/li>\n<\/ul>\n\n\n\n<p>Feel free to explore these options and discover which ones best suit your needs.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Condition Examples<\/h2>\n\n\n\n<p>If you\u2019re curious about how conditions work within Blocksy, we\u2019ve put together a table with some practical examples to help you understand their functionality better. These examples will illustrate how you can use conditions to create dynamic, personalised experiences for your visitors. Whether you want to display specific content based on the user\u2019s role, adjust the layout depending on the time of day, or show targeted promotions to users coming from particular referrer sites, the conditions system in Blocksy makes it all possible. Take a look at the table below to see how these versatile conditions can be applied to various scenarios, unlocking endless possibilities for your website\u2019s customisation.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Condition Name<\/th><th>Effect<\/th><\/tr><\/thead><tbody><tr><td>Entire Website<\/td><td>Applies the feature to the entire website.<\/td><\/tr><tr><td><strong>Basic<\/strong><\/td><td><\/td><\/tr><tr><td>All Singulars<\/td><td>Applies the feature to all singulars &#8211; pages, posts, custom post types, products.<\/td><\/tr><tr><td>All Archives<\/td><td>Applies the feature to all archives &#8211; posts, custom post types, products.<\/td><\/tr><tr><td><strong>Posts<\/strong><\/td><td><\/td><\/tr><tr><td>Post Archives<\/td><td>Applies the feature to all post archives.<\/td><\/tr><tr><td>Post Categories<\/td><td>Applies the feature to all post category archive pages.<\/td><\/tr><tr><td>Post Tags<\/td><td>Applies the feature to all post tag archive pages.<\/td><\/tr><tr><td>Single Post<\/td><td>Applies the feature to all single post pages.<\/td><\/tr><tr><td><strong>Pages<\/strong><\/td><td><\/td><\/tr><tr><td>Single Page<\/td><td>Applies the feature to all pages.<\/td><\/tr><tr><td>404<\/td><td>Applies the feature to the 404 page.<\/td><\/tr><tr><td>Search<\/td><td>Applies the feature to the search page.<\/td><\/tr><tr><td>Blog<\/td><td>Applies the feature to the page that&#8217;s been designated as &#8220;blog&#8221; in WordPress&#8217; settings.<\/td><\/tr><tr><td>Front Page<\/td><td>Applies the feature to the page that&#8217;s been designated as &#8220;home&#8221; in WordPress&#8217; settings.<\/td><\/tr><tr><td>Privacy Policy Page<\/td><td>Applies the feature to the page that&#8217;s been designated as &#8220;privacy policy&#8221; in WooCommerce&#8217;s settings.<\/td><\/tr><tr><td>Author Archives<\/td><td>Applies the feature to all author archive pages.<\/td><\/tr><tr><td><strong>WooCommerce<\/strong><\/td><td><\/td><\/tr><tr><td>Shop Home<\/td><td>Applies the feature to the page that&#8217;s been designated as &#8220;shop home&#8221; in WooCommerce&#8217;s settings.<\/td><\/tr><tr><td>Single Product<\/td><td>Applies the feature to all single product pages.<\/td><\/tr><tr><td>Product Archives<\/td><td>Applies the feature to all product archive pages.<\/td><\/tr><tr><td>Product Categories<\/td><td>Applies the feature to all product category archive pages.<\/td><\/tr><tr><td>Product Attributes<\/td><td>Applies the feature to all product attribute archive pages.<\/td><\/tr><tr><td>Product Brands<\/td><td>Applies the feature to all product brand archive pages.<\/td><\/tr><tr><td>Product Tags<\/td><td>Applies the feature to all product tag archive pages.<\/td><\/tr><tr><td>Single Product ID<\/td><td>Applies the feature to a specific product&#8217;s single product page.<\/td><\/tr><tr><td>Single Product with Taxonomy ID<\/td><td>Applies the feature to all single product pages that are tagged with a specific category, tag or brand.<\/td><\/tr><tr><td>Taxonomy ID<\/td><td>Applies the feature to all product archive pages that have been tagged with a specific category, tag or brand.<\/td><\/tr><tr><td><strong>Custom Post Types<\/strong><\/td><td><\/td><\/tr><tr><td>CPT Name Single<\/td><td>Applies the feature to all singulars that are assigned to a CPT.<\/td><\/tr><tr><td>CPT Name Archives<\/td><td>Applies the feature to all archive pages assigned to a CPT.<\/td><\/tr><tr><td><strong>Specific<\/strong><\/td><td><\/td><\/tr><tr><td>Post ID<\/td><td>Applies the feature to a specific post.<\/td><\/tr><tr><td>Page ID<\/td><td>Applies the feature to a specific page.<\/td><\/tr><tr><td>Custom Post Type ID<\/td><td>Applies the feature to a specific post assigned to a CPT.<\/td><\/tr><tr><td>Post with Taxonomy ID<\/td><td>Applies the feature to all posts assigned to a specific category or tag.<\/td><\/tr><tr><td>Post with Author ID<\/td><td>Applies the feature to all posts assigned to a specific author.<\/td><\/tr><tr><td>Taxonomy ID<\/td><td>Applies the feature to all archive pages for a specific category or tag.<\/td><\/tr><tr><td><strong>Archive Loop Specific<\/strong><\/td><td><\/td><\/tr><tr><td>Archive Item with Taxonomy ID<\/td><td>Applies the feature for post cards on post archive pages that are tagged with a specific category or tag.<\/td><\/tr><tr><td>WooCommerce Archive Item with Taxonomy ID<\/td><td>Applies the feature for product cards on product archive pages that are tagged with a specific category, tag or brand.<\/td><\/tr><tr><td><strong>Date &amp; Time<\/strong><\/td><td><\/td><\/tr><tr><td>Range Date\/Time<\/td><td>Applies the feature in a specific date\/time range.<\/td><\/tr><tr><td>Recurring Days<\/td><td>Applies the feature in some specific days.<\/td><\/tr><tr><td><strong>Requests<\/strong><\/td><td><\/td><\/tr><tr><td>Request Referer<\/td><td><\/td><\/tr><tr><td>Request Cookie<\/td><td><\/td><\/tr><tr><td>Request URL<\/td><td><\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>The Conditional Module is a powerful tool that allows you to display specific parts of Blocksy only when certain conditions are met. This feature enables you to create highly dynamic websites, giving you the flexibility to tailor content and design elements, setting your site apart from the competition. You\u2019ll find the Conditional Module integrated into [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"doc_categories":[120],"class_list":["post-2073","documentation","type-documentation","status-publish","hentry","doc_categories-modules"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":6},"post_title_panel":"","has_hero_section":"default","70a03161062c1833c9d605a3d99c0fbc":"","hero_section":"type-1","hero_elements":[{"id":"custom_title","enabled":true,"heading_tag":"h1","title":"Home"},{"id":"custom_description","enabled":true,"description_visibility":{"desktop":true,"tablet":true,"mobile":false}},{"id":"custom_meta","enabled":true,"meta_elements":[{"id":"author","enabled":true,"label":"By","has_author_avatar":"yes","avatar_size":25},{"id":"post_date","enabled":true,"label":"On","date_format_source":"default","date_format":"M j, Y"},{"id":"updated_date","enabled":false,"label":"On","date_format_source":"default","date_format":"M j, Y"},{"id":"categories","enabled":true,"label":"In","style":"simple"},{"id":"comments","enabled":true}],"page_meta_elements":{"joined":true,"articles_count":true,"comments":true}},{"id":"breadcrumbs","enabled":false}],"10440b3df391eea0e6f5502d8a78ea5b":"","hero_alignment1":"CT_CSS_SKIP_RULE","hero_margin":40,"hero_alignment2":"center","hero_vertical_alignment":"center","faa9fb5fdcc33a1815b2bc81af8818b0":"","hero_structure":"narrow","414c85ef7dae1fcaa4d9749fd1ec31c7":"","page_title_bg_type":"featured_image","custom_hero_background":{"attachment_id":null},"page_title_image_size":"full","parallax":{"desktop":false,"tablet":false,"mobile":false},"b77fd3cf2114903b780ec6bf31c860b8":"","hero_height":"250px","pageTitleFont":{"family":"Default","variation":"Default","size":"30px","line-height":"CT_CSS_SKIP_RULE","letter-spacing":"CT_CSS_SKIP_RULE","text-transform":"CT_CSS_SKIP_RULE","text-decoration":"CT_CSS_SKIP_RULE"},"pageTitleFontColor":{"default":{"color":"CT_CSS_SKIP_RULEDEFAULT"}},"pageMetaFont":{"family":"Default","variation":"n6","size":"12px","line-height":"1.3","letter-spacing":"CT_CSS_SKIP_RULE","text-transform":"uppercase","text-decoration":"CT_CSS_SKIP_RULE"},"pageMetaFontColor":{"default":{"color":"CT_CSS_SKIP_RULEDEFAULT"},"hover":{"color":"CT_CSS_SKIP_RULEDEFAULT"}},"page_meta_button_type_font_colors":{"default":{"color":"CT_CSS_SKIP_RULEDEFAULT"},"hover":{"color":"CT_CSS_SKIP_RULEDEFAULT"}},"page_meta_button_type_background_colors":{"default":{"color":"CT_CSS_SKIP_RULEDEFAULT"},"hover":{"color":"CT_CSS_SKIP_RULEDEFAULT"}},"pageExcerptFont":{"family":"Default","variation":"Default","size":"CT_CSS_SKIP_RULE","line-height":"CT_CSS_SKIP_RULE","letter-spacing":"CT_CSS_SKIP_RULE","text-transform":"CT_CSS_SKIP_RULE","text-decoration":"CT_CSS_SKIP_RULE"},"pageExcerptColor":{"default":{"color":"CT_CSS_SKIP_RULEDEFAULT"}},"breadcrumbsFont":{"family":"Default","variation":"Default","size":"CT_CSS_SKIP_RULE","line-height":"CT_CSS_SKIP_RULE","letter-spacing":"CT_CSS_SKIP_RULE","text-transform":"CT_CSS_SKIP_RULE","text-decoration":"CT_CSS_SKIP_RULE"},"breadcrumbsFontColor":{"default":{"color":"CT_CSS_SKIP_RULEDEFAULT"},"initial":{"color":"CT_CSS_SKIP_RULEDEFAULT"},"hover":{"color":"CT_CSS_SKIP_RULEDEFAULT"}},"pageTitleOverlay":{"background_type":"color","background_pattern":"type-1","background_image":{"attachment_id":null,"x":0,"y":0},"gradient":"linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)","background_repeat":"repeat","background_size":"auto","background_attachment":"scroll","patternColor":{"default":{"color":"#e5e7ea"}},"overlayColor":{"default":{"color":"CT_CSS_SKIP_RULE"}},"backgroundColor":{"default":{"color":"CT_CSS_SKIP_RULE"}}},"pageTitleBackground":{"background_type":"color","background_pattern":"type-1","background_image":{"attachment_id":null,"x":0,"y":0},"gradient":"linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)","background_repeat":"repeat","background_size":"auto","background_attachment":"scroll","patternColor":{"default":{"color":"#e5e7ea"}},"overlayColor":{"default":{"color":"CT_CSS_SKIP_RULE"}},"backgroundColor":{"default":{"color":"var(--paletteColor6)"}}},"pageTitlePadding":{"top":"50px","bottom":"50px","left":"auto","right":"auto","linked":true},"4f07fd9a317c516094369bc543653dc5":"","page_structure_type":"default","885b7fdd701f4e40dfb409a31a9cc67c":"","content_style_source":"inherit","content_style":"wide","vertical_spacing_source":"inherit","content_area_spacing":"both","background":{"background_type":"color","background_pattern":"type-1","background_image":{"attachment_id":null,"x":0,"y":0},"gradient":"linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)","background_repeat":"repeat","background_size":"auto","background_attachment":"scroll","patternColor":{"default":{"color":"#e5e7ea"}},"overlayColor":{"default":{"color":"CT_CSS_SKIP_RULE"}},"backgroundColor":{"default":{"color":"CT_CSS_SKIP_RULE"}}},"content_background":{"background_type":"color","background_pattern":"type-1","background_image":{"attachment_id":null,"x":0,"y":0},"gradient":"linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)","background_repeat":"repeat","background_size":"auto","background_attachment":"scroll","patternColor":{"default":{"color":"#e5e7ea"}},"overlayColor":{"default":{"color":"CT_CSS_SKIP_RULE"}},"backgroundColor":{"default":{"color":"var(--paletteColor8)"}}},"content_boxed_shadow":{"inherit":false,"blur":18,"spread":-6,"v_offset":12,"h_offset":0,"inset":false,"enable":true,"color":{"color":"rgba(34, 56, 101, 0.04)"}},"content_boxed_border":{"width":1,"style":"none","color":{"color":"rgba(44,62,80,0.2)"}},"content_boxed_radius":{"top":"3px","bottom":"3px","left":"3px","right":"3px","linked":true},"boxed_content_spacing":{"desktop":{"top":"40px","bottom":"40px","left":"40px","right":"40px","linked":true},"tablet":{"top":"35px","bottom":"35px","left":"35px","right":"35px","linked":true},"mobile":{"top":"20px","bottom":"20px","left":"20px","right":"20px","linked":true}},"83744eb21a1deb62087eb4216f9a5898":"","disable_featured_image":"no","disable_share_box":"no","disable_author_box":"no","disable_posts_navigation":"no","caa4b3c4628f9e52c23da10df209c190":"","disable_related_posts":"no","disable_header":"no","disable_footer":"no","66c1970053a70141e9c428f4dfb2243b":"","header_footer_scripts_panel":"","header_scripts":"","e237089d36b61e823183d98d701b3661":"","header_after_body_scripts":"","087a0ba72a45381628732b59e9b8c055":"","footer_scripts":"","docs_item_badge":"PRO"},"acf":[],"_links":{"self":[{"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/documentation\/2073","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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/comments?post=2073"}],"version-history":[{"count":11,"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/documentation\/2073\/revisions"}],"predecessor-version":[{"id":13435,"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/documentation\/2073\/revisions\/13435"}],"wp:attachment":[{"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/media?parent=2073"}],"wp:term":[{"taxonomy":"doc_categories","embeddable":true,"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/doc_categories?post=2073"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}