Headings create structure. They provide a quick way to scan the main sections of a website.
There a few style variants for headings:
Simply add the title class on any heading element (according SEO guidelines) to apply this style. It isn’t required to use these classes on the default heading element provided.
{% if type == "overview-title" %}
<{{ heading|default('h1') }} class="overview-title"><span class="overview-title-colon">{{ heading_text }}<span class="colon" aria-hidden="true"></span></span></{{ heading|default('h1') }}>
{% elseif type == "collection-title" %}
<{{ heading|default('h2') }} class="collection-title"><span>{{ heading_text }}</span></{{ heading|default('h2') }}>
{% else %}
<{{ type }}>{{ heading_text }}</{{ type }}>
{% endif %}
<h4>Heading 4</h4>
{
"heading_text": "Heading 4",
"type": "h4"
}
h1,
.h1,
%h1,
h2,
.h2,
%h2,
h3,
.h3,
%h3,
h4,
.h4,
%h4,
h5,
.h5,
%h5 {
@include bold-text;
margin: 0 0 .8rem;
font-style: normal;
line-height: 1.5;
button {
display: flex;
padding: 0;
border: 0;
background: none;
font-size: inherit;
font-style: inherit;
font-weight: inherit;
line-height: inherit;
cursor: pointer;
i {
font-size: inherit;
}
}
}