Theme features can be added in an additive fashion to older sites. Think about the future of the website and how these features can enhance it.
theme.json
.theme.json
file on the themes doc.theme.json
file."label"
to be the name of the theme, as you want content creators to see it."preview_path"
to the path of either your homepage template or your most frequently used template.thumb.jpg
. Place the image inside of the same folder as your theme.json
file."screenshot_path"
in theme.json to the path of your thumb.png
image.theme.json
create a new file, name it fields.json. Inside of this file enter just []
and save the file.hs upload command
. You now have a basic theme. Modules and templates within that theme will display associated to the theme.
{% widget_container "my_unique_column_name" %}
.{% dnd_area "my_unique_area_name" %}
.dnd_area
empty. If you want to carry over the default modules for the region or set new useful defaults, within the dnd_area
add a dnd_section
, and inside of that a dnd_column
.widget_container
you will want to create a dnd_row
, containing a dnd_module
with a matching path to the modules you want to display by default. This will create the same vertical layout the flexible column had.