{"id":37,"date":"2025-09-26T08:50:51","date_gmt":"2025-09-26T08:50:51","guid":{"rendered":"https:\/\/ska-blocks.com\/docs\/2025\/09\/26\/under-construction-mode\/"},"modified":"2025-09-26T09:43:29","modified_gmt":"2025-09-26T09:43:29","slug":"under-construction-mode","status":"publish","type":"post","link":"https:\/\/ska-blocks.com\/docs\/under-construction-mode\/","title":{"rendered":"Under construction mode"},"content":{"rendered":"\n<p><strong>ska-theme -&gt; General -&gt; Under construction<\/strong> option allows to enable &#8220;coming soon&#8221; mode for the website.<\/p>\n\n\n\n<p>When enabled, anyone who visits the site <strong>while not logged in<\/strong> will see the Under construction template instead of your front page.<\/p>\n\n\n\n<div class=\"flex flex-row gap-4 items-center px-4 py-2 mb-(--spacing-prose) not-prose text-warning-text bg-warning-background rounded border border-warning-border wp-block-ska-element\">\n<div role=\"figure\" aria-hidden=\"true\" class=\"w-8 min-w-8 h-auto text-current wp-block-ska-image image\"><svg   viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n<path d=\"M11.9998 9.00006V12.7501M2.69653 16.1257C1.83114 17.6257 2.91371 19.5001 4.64544 19.5001H19.3541C21.0858 19.5001 22.1684 17.6257 21.303 16.1257L13.9487 3.37819C13.0828 1.87736 10.9167 1.87736 10.0509 3.37819L2.69653 16.1257ZM11.9998 15.7501H12.0073V15.7576H11.9998V15.7501Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><\/path>\n<\/svg><\/div>\n\n\n\n<p class=\"text-sm\/tight\">Under construction mode <strong>does not<\/strong> make your site private, your pages content is still exposed via REST API and the mode can be bypassed with a simple query var.<\/p>\n<\/div>\n\n\n\n<p>The mode is very rudimentary, simply designed to let any human visitors know that the website is not ready yet. If you need a more advanced solution that guarantees lack of access to your site content you&#8217;ll need to use a third party plugin or don&#8217;t place the website online.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Bypass<\/h2>\n\n\n\n<p>The under construction mode can easily be bypassed by adding <code>?ska-is-preview<\/code> to the end of the URL.<\/p>\n\n\n\n<p>When visiting the page with this query variable a <strong>cookie<\/strong> is created that keeps bypassing the under construction mode.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Template<\/h2>\n\n\n\n<p>The Under Construction template can be edited from <strong>Appearance -&gt; Editor -&gt; Patterns -&gt; Template parts -&gt; General -&gt; Under construction page<\/strong>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Indexing<\/h2>\n\n\n\n<p>Under construction mode doesn&#8217;t disable indexing by search engines, so if you wish to prevent search engines from indexing your site you need to enable the <strong>Settings -&gt; Reading -&gt; Discourage search engines from indexing this site<\/strong> option from WordPress core settings.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ska-theme -&gt; General -&gt; Under construction option allows to enable &#8220;coming soon&#8221; mode for the website. When enabled, anyone who visits the site while not logged in will see the Under construction template instead of your front page. The mode is very rudimentary, simply designed to let any human visitors know that the website is&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-37","post","type-post","status-publish","format-standard","hentry","category-ska-theme"],"_links":{"self":[{"href":"https:\/\/ska-blocks.com\/docs\/wp-json\/wp\/v2\/posts\/37","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ska-blocks.com\/docs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ska-blocks.com\/docs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ska-blocks.com\/docs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ska-blocks.com\/docs\/wp-json\/wp\/v2\/comments?post=37"}],"version-history":[{"count":1,"href":"https:\/\/ska-blocks.com\/docs\/wp-json\/wp\/v2\/posts\/37\/revisions"}],"predecessor-version":[{"id":225,"href":"https:\/\/ska-blocks.com\/docs\/wp-json\/wp\/v2\/posts\/37\/revisions\/225"}],"wp:attachment":[{"href":"https:\/\/ska-blocks.com\/docs\/wp-json\/wp\/v2\/media?parent=37"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ska-blocks.com\/docs\/wp-json\/wp\/v2\/categories?post=37"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ska-blocks.com\/docs\/wp-json\/wp\/v2\/tags?post=37"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}