ska-theme
Menu
Examples of styling the <ul> -> <li> elements produced by the Menu block with Tailwind classes. Usage – copy the code for the desired appearance, paste it into your block editor, swap out the Menu block’s placeholder menu with one from your own WordPress nav menus. You can then edit the Tailwind classes to tailor…Read moreCookie consent notice
From ska-theme -> General -> Cookie notice option it’s possible to enable displaying a dialog that notifies users about cookies. The contents of the notice can be changed by editing the Appearance -> Editor -> Patterns -> General -> Consent dialog template part. By default the notice integrates with WP Consent API and Google Site…Read moreLanding page
To create a landing page, you’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…Read moreAlpine.js
ska-theme comes equipped with Alpine.js, its’ plugins “collapse”, “focus” and “intersect”, as well as some custom components listed below. Alpine.js pairs well with ska-blocks plugin because the blocks have an ability to accept custom HTML attributes, making it easy to add Alpine.js directives in the editor. The Alpine.js instance can be accessed on the front…Read moreCode block
The code block is an alternative for the WordPress code block with the addition of syntax highlighting, indenting and copy function. The Code block uses the “Code block” preset for its’ appearance by default. Basic code block Code block with a header Code block can have a header that can contain a short description of…Read moreDialog
ska-theme includes a custom Alpine.js component for handling HTML dialog elements. The module abstracts away calling the native .showModal(), .close() functions, adds x-transition to the dialog and enables closing of the modal by clicking away from the modal. Creating a dialog Adding x-data=”skaDialog” do an element will locate a button and a dialog from its’…Read moreLanguage switcher block
The Language switcher block can display a placeholder language switcher when a multilingual plugin isn’t installed yet, but will switch to using languages from WPML or Polylang once detected. Block options Mode The block can be in “List” mode to render a basic <ul> > <li> of the languages, or in “Dropdown” mode which utilizes…Read moreCart dialog block
The Cart dialog block can display a button that opens the WooCommerce mini cart widget in a Dialog, which is a light-weight alternative for the WC “Mini-cart” block. Example mini cart icon for header: When WooCommerce isn’t activated the block renders nothing. The inner block for the Cart dialog block is a button that will…Read moreImporting a demo
There are a number of pre-built demos for ska-theme are available. Demos are a fast starting point for a website with a particular appearance or style. They include customizations to ska-blocks, ska-theme configurations, Tailwind theme, modifications to presets and sample pages. Importing a demo Next steps See: ska-theme getting started – first stepsRead more