{"id":21,"date":"2025-09-26T08:50:46","date_gmt":"2025-09-26T08:50:46","guid":{"rendered":"https:\/\/ska-blocks.com\/docs\/2025\/09\/26\/landing-page\/"},"modified":"2025-09-27T07:06:18","modified_gmt":"2025-09-27T07:06:18","slug":"landing-page","status":"publish","type":"post","link":"https:\/\/ska-blocks.com\/docs\/landing-page\/","title":{"rendered":"Landing page"},"content":{"rendered":"\n<p>To create a landing page, you&#8217;ll want to add a new WordPress page and assign the <strong>Full width<\/strong> template for it (a template that comes with ska-theme). Template can be changed from the right sidebar when editing a page:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/ska-blocks.com\/docs\/wp-content\/uploads\/sites\/3\/2024\/03\/image-96.png\" alt=\"\" class=\"wp-image-833\"\/><\/figure>\n\n\n\n<p>Choose <strong>Swap template<\/strong> and pick the <strong>Full width<\/strong> template.<\/p>\n\n\n\n<p>Once created, you can make the page your front page from the WordPress settings at <strong>Settings -&gt; Reading -&gt; Your homepage displays -&gt; A static page<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/ska-blocks.com\/docs\/wp-content\/uploads\/sites\/3\/2024\/03\/image-97.png\" alt=\"\" class=\"wp-image-836\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Patterns<\/h2>\n\n\n\n<p>You can use some pre-packaged block <a href=\"https:\/\/ska-blocks.com\/docs\/ska-theme\/patterns\/\" data-type=\"post\" data-id=\"561\">patterns<\/a> to construct the landing page. Patterns can be inserted from the top left corner block inserter -&gt; Patterns.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">HTML to blocks<\/h2>\n\n\n\n<p>Lots of websites offer free (and paid) Tailwind HTML for various landing page sections. The <a href=\"https:\/\/ska-blocks.com\/docs\/ska-blocks\/tailwind-block\/\" data-type=\"post\" data-id=\"217\">Tailwind block<\/a> can be used to convert these to blocks.<\/p>\n\n\n\n<p>To maintain consistency, first add the <strong>Section block<\/strong> (it&#8217;s actually a block <a href=\"https:\/\/ska-blocks.com\/docs\/ska-blocks\/variations\/\" data-type=\"post\" data-id=\"339\">variation<\/a>) that comes with ska-theme &#8211; it will contain the <strong>Container<\/strong> block by default. Add the Tailwind block inside that, giving you <strong>Section -&gt; Container -&gt; Tailwind<\/strong>:<\/p>\n\n\n<div class=\"ska-blocks-docs__wrapper not-prose\" x-data=\"{showContent: false, showMessage: false, showError: false}\" style=\"display:flex;flex-direction:column\">\n<div class=\"wp-block-ska-element ska-blocks-docs not-prose ska-preset--docs-blocks\">\n<section class=\"wp-block-ska-element ska-preset--ska-theme--section\">\n<div class=\"wp-block-ska-element ska-preset--ska-theme--container\">\n<!-- Tailwind HTML goes here -->\n<\/div>\n<\/section>\n<\/div>\n<div class=\"ska-blocks-docs__controls\" style=\"order:-1\">\n\t<button class=\"code\" type=\"button\" x-on:click=\"showContent = !showContent\" x-text=\"showContent ? 'Hide code' : 'Show code'\" aria-pressed=\"showContent\">Show code<\/button>\n\t<div>\n\t\t<span class=\"message success\" aria-hidden=\"true\" x-cloak x-show=\"showMessage\" >Copied!<\/span>\n\t\t<span class=\"message error\" aria-hidden=\"true\" x-cloak x-show=\"showError\">Couldn&#8217;t copy!<\/span>\n\t\t<button class=\"copy\" type=\"button\" x-on:click=\"navigator.clipboard ? (navigator.clipboard.writeText($el.parentElement.parentElement.nextElementSibling.querySelector('pre').innerText), showMessage = true) : showError = true\">Copy blocks<\/button>\n\t<\/div>\n<\/div>\n<div class=\"ska-blocks-docs__content ska-preset--ska-theme--code\" x-cloak x-collapse x-show=\"showContent\" hidden>\n\t<div class=\"content\">\n\t\t<pre class=\"ska-blocks-docs__blocks code\"><code class=\"html language-html\">&lt;!-- wp:ska\/element {&quot;skaBlocks&quot;:{&quot;p&quot;:[{&quot;id&quot;:&quot;ska-theme--section&quot;,&quot;isStatic&quot;:true}],&quot;t&quot;:1758876679},&quot;skaBlocksAs&quot;:{&quot;element&quot;:&quot;section&quot;},&quot;skaBlocksVariation&quot;:&quot;ska-theme--section&quot;} --&gt;\n&lt;section class=&quot;wp-block-ska-element&quot;&gt;\n&lt;!-- wp:ska\/element {&quot;skaBlocks&quot;:{&quot;p&quot;:[{&quot;id&quot;:&quot;ska-theme--container&quot;,&quot;isStatic&quot;:true}],&quot;t&quot;:1758876679},&quot;skaBlocksVariation&quot;:&quot;ska-theme--container&quot;} --&gt;\n&lt;div class=&quot;wp-block-ska-element&quot;&gt;\n&lt;!-- wp:ska\/tailwind --&gt;\n&lt;!-- Tailwind HTML goes here --&gt;\n&lt;!-- \/wp:ska\/tailwind --&gt;\n&lt;\/div&gt;\n&lt;!-- \/wp:ska\/element --&gt;\n&lt;\/section&gt;\n&lt;!-- \/wp:ska\/element --&gt;<\/code><\/pre>\n\t<\/div>\n<\/div><\/div>\n\n\n<p><strong>Note:<\/strong> if you don&#8217;t see anything inside the Section block, expand it from the <strong>List view<\/strong>, select the Container block inside of it and click <em>&#8220;Type \/ to choose a block&#8221;<\/em> to add any blocks into the container.<\/p>\n\n\n\n<div data-ska-pswp=\"ska-pswp-1\" class=\"grid grid-cols-2 gap-4 wp-block-ska-lightbox\">\n<a data-pswp-height=\"463\" data-pswp-width=\"1434\" href=\"https:\/\/ska-blocks.com\/docs\/wp-content\/uploads\/sites\/3\/2025\/09\/image-14.png\" class=\"wp-block-ska-image image\"><img decoding=\"async\" src=\"https:\/\/ska-blocks.com\/docs\/wp-content\/uploads\/sites\/3\/2025\/09\/image-14-300x97.png\" width=\"300\" height=\"97\" loading=\"lazy\" srcset=\"https:\/\/ska-blocks.com\/docs\/wp-content\/uploads\/sites\/3\/2025\/09\/image-14-300x97.png 300w, https:\/\/ska-blocks.com\/docs\/wp-content\/uploads\/sites\/3\/2025\/09\/image-14-1024x331.png 1024w, https:\/\/ska-blocks.com\/docs\/wp-content\/uploads\/sites\/3\/2025\/09\/image-14-768x248.png 768w, https:\/\/ska-blocks.com\/docs\/wp-content\/uploads\/sites\/3\/2025\/09\/image-14.png 1434w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\n\n\n\n<a data-pswp-height=\"423\" data-pswp-width=\"1441\" href=\"https:\/\/ska-blocks.com\/docs\/wp-content\/uploads\/sites\/3\/2025\/09\/image-15.png\" class=\"wp-block-ska-image image\"><img decoding=\"async\" src=\"https:\/\/ska-blocks.com\/docs\/wp-content\/uploads\/sites\/3\/2025\/09\/image-15-300x88.png\" width=\"300\" height=\"88\" loading=\"lazy\" srcset=\"https:\/\/ska-blocks.com\/docs\/wp-content\/uploads\/sites\/3\/2025\/09\/image-15-300x88.png 300w, https:\/\/ska-blocks.com\/docs\/wp-content\/uploads\/sites\/3\/2025\/09\/image-15-1024x301.png 1024w, https:\/\/ska-blocks.com\/docs\/wp-content\/uploads\/sites\/3\/2025\/09\/image-15-768x225.png 768w, https:\/\/ska-blocks.com\/docs\/wp-content\/uploads\/sites\/3\/2025\/09\/image-15.png 1441w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\n\n\n\n<a data-pswp-height=\"423\" data-pswp-width=\"1148\" href=\"https:\/\/ska-blocks.com\/docs\/wp-content\/uploads\/sites\/3\/2025\/09\/image-16.png\" class=\"wp-block-ska-image image\"><img decoding=\"async\" src=\"https:\/\/ska-blocks.com\/docs\/wp-content\/uploads\/sites\/3\/2025\/09\/image-16-300x111.png\" width=\"300\" height=\"111\" loading=\"lazy\" srcset=\"https:\/\/ska-blocks.com\/docs\/wp-content\/uploads\/sites\/3\/2025\/09\/image-16-300x111.png 300w, https:\/\/ska-blocks.com\/docs\/wp-content\/uploads\/sites\/3\/2025\/09\/image-16-1024x377.png 1024w, https:\/\/ska-blocks.com\/docs\/wp-content\/uploads\/sites\/3\/2025\/09\/image-16-768x283.png 768w, https:\/\/ska-blocks.com\/docs\/wp-content\/uploads\/sites\/3\/2025\/09\/image-16.png 1148w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\n\n\n\n<a data-pswp-height=\"467\" data-pswp-width=\"1111\" href=\"https:\/\/ska-blocks.com\/docs\/wp-content\/uploads\/sites\/3\/2025\/09\/image-17.png\" class=\"wp-block-ska-image image\"><img decoding=\"async\" src=\"https:\/\/ska-blocks.com\/docs\/wp-content\/uploads\/sites\/3\/2025\/09\/image-17-300x126.png\" width=\"300\" height=\"126\" loading=\"lazy\" srcset=\"https:\/\/ska-blocks.com\/docs\/wp-content\/uploads\/sites\/3\/2025\/09\/image-17-300x126.png 300w, https:\/\/ska-blocks.com\/docs\/wp-content\/uploads\/sites\/3\/2025\/09\/image-17-1024x430.png 1024w, https:\/\/ska-blocks.com\/docs\/wp-content\/uploads\/sites\/3\/2025\/09\/image-17-768x323.png 768w, https:\/\/ska-blocks.com\/docs\/wp-content\/uploads\/sites\/3\/2025\/09\/image-17.png 1111w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\n<\/div>\n\n\n\n<p>Now paste your custom HTML to the Tailwind block and take a look at the first 2 HTML elements that wrap your code &#8211; typically they are used to add vertical spacing with <code>py-16 sm:py-32<\/code> and such, as well as to create a container with classes such as <code>px-4 sm:px-6 mx-auto max-w-7xl<\/code>. If you find these, you may delete these elements and their closing tags from the end, so that you only convert the contents directly into ska-theme&#8217;s Section and Container &#8211; this will keep all your landing page sections consistent and allows to modify the spacing and widths from their respective <a href=\"https:\/\/ska-blocks.com\/docs\/ska-blocks\/presets\/\" data-type=\"post\" data-id=\"327\">Presets<\/a>, all at once. You can also keep them and re-arrange or unwrap the blocks using the List view, or simply remove any classes that may be performing the job that the Container or Section already provide.<\/p>\n\n\n\n<p>Hit &#8220;Convert to blocks&#8221;, and if you&#8217;re happy with the result, remove the Tailwind block itself.<\/p>\n\n\n\n<p>Next, you&#8217;ll probably want to go over any button-like elements that the custom HTML introduced. Create a duplicate of them, remove all classes from them and add the <strong>Button<\/strong> and <strong>Primary button<\/strong> or <strong>Outline button<\/strong> presets instead, keeping your buttons consistent across the site. Now go back to the original and pick out any classes you might have wanted to keep, such as additional padding, increased font size or min-width. But overall the button appearance should rely on the Button preset.<\/p>\n\n\n\n<p>If the resulting UI included a lot of repeating elements, such as a list, you may wish to &#8220;hoist&#8221; the Tailwind classes upwards using <a href=\"https:\/\/ska-blocks.com\/docs\/ska-blocks\/selectors\/\" data-type=\"post\" data-id=\"341\">selectors<\/a> and the &#8220;<a href=\"https:\/\/ska-blocks.com\/docs\/ska-blocks\/selectors\/#move-classes-to-parent\">Move classes to parent<\/a>&#8221;  feature, and then remove the classes from all the other child elements that now receive it from the parent. That way you can edit all the child elements appearance from 1 place which makes it less tedious to make changes later.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To create a landing page, you&#8217;ll want to add a new WordPress page and assign the Full width template for it (a template that comes with ska-theme). Template can be changed from the right sidebar when editing a page: Choose Swap template and pick the Full width template. Once created, you can make the page&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-21","post","type-post","status-publish","format-standard","hentry","category-ska-theme"],"_links":{"self":[{"href":"https:\/\/ska-blocks.com\/docs\/wp-json\/wp\/v2\/posts\/21","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=21"}],"version-history":[{"count":3,"href":"https:\/\/ska-blocks.com\/docs\/wp-json\/wp\/v2\/posts\/21\/revisions"}],"predecessor-version":[{"id":299,"href":"https:\/\/ska-blocks.com\/docs\/wp-json\/wp\/v2\/posts\/21\/revisions\/299"}],"wp:attachment":[{"href":"https:\/\/ska-blocks.com\/docs\/wp-json\/wp\/v2\/media?parent=21"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ska-blocks.com\/docs\/wp-json\/wp\/v2\/categories?post=21"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ska-blocks.com\/docs\/wp-json\/wp\/v2\/tags?post=21"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}