I left the schema out. I couldn’t find the If loop like I saw in the footer.
{%- if section.settings.announcement_bar_enabled -%}
{%- assign announcement_bar_color_text_rgba_stripped = section.settings.announcement_bar_color_text | color_to_rgb | remove: 'rgb(' | remove: ')' -%}
{%- style -%}
.announcement-bar {
background-color: {{ section.settings.announcement_bar_color_background }};
border-bottom: 1px solid {{ section.settings.announcement_bar_color_text }};
}
.announcement-bar__link,
.announcement-bar__message {
color: {{ section.settings.announcement_bar_color_text }};
}
.announcement-bar {
–focus-color: rgba({{ announcement_bar_color_text_rgba_stripped }}, 0.8);
–focus-offset-color: {{ section.settings.announcement_bar_color_background }};
}
{%- if section.settings.enable_secondary_background -%}
.search-drawer {
background-color: var(–color-secondary-background);
}
.search__form-button–drawer, .search__form-input-label–drawer, .search__form-input–drawer.form__input {
color: var(–color-secondary-background-text);
}
.search__form-input–drawer.form__input{
border-color: var(–color-secondary-background-text);
}
.search__form-button–drawer .icon-close {
stroke: var(–color-secondary-background-text);
}
.search-drawer {
–focus-color: rgba(var(–color-secondary-background-text-rgba-stripped), 0.8);
–focus-offset-color: var(–color-secondary-background);
}
{%- endif -%}
{%- endstyle -%}
{%- endif -%}
{%- liquid
assign render_menu = false
if section.settings.main_menu != blank
assign menu = linklists[section.settings.main_menu]
if menu.links.size != 0
assign render_menu = true
endif
endif
-%}
{%- if request.page_type == 'index' -%}
{%- else -%}
{%- endif -%}
{%- liquid
if render_menu
render ‘menu-navigation’, menu: menu, is_mobile: false
endif
-%}
{%- if section.settings.show_search -%}
{% render 'icon-search' %}
{{ 'general.search.search' | t }}
{% render 'icon-search' %}
{{ 'general.search.search' | t }}
{%- endif -%}
{%- if shop.customer_accounts_enabled -%}
{% assign customer_url = routes.account_login_url %}
{% assign customer_fallback_text = ‘layout.customer.log_in’ | t %}
{%- if customer -%}
{% assign customer_url = routes.account_url %}
{% assign customer_fallback_text = ‘layout.customer.account’ | t %}
{%- endif -%}
{% render 'icon-account' %}
{{ customer_fallback_text }}
{%- endif -%}
<a href=“{{ routes.cart_url }}”
class=“header__icon header__icon–button header__icon–cart-button-link{% unless settings.show_cart_drawer %} header__icon–cart-visible{% endunless %} focus-inset”
data-header-icon
{% render ‘icon-cart’ %}
{{ ‘layout.cart.title’ | t }}
{{ 'layout.cart.items_count' | t }}
{%- if cart.item_count > 99 -%}
99+
{%- else -%}
{{ cart.item_count }}
{%- endif -%}
{%- if settings.show_cart_drawer -%}
{% render 'icon-cart' %}
{{ 'layout.cart.title' | t }}
{{ 'layout.cart.items_count' | t }}
{%- if cart.item_count > 99 -%}
99+
{%- else -%}
{{ cart.item_count }}
{%- endif -%}
{{ 'layout.cart.cart_price' | t }}
{%- if settings.currency_code_enabled -%}
{{ cart.total_price | money_with_currency }}
{%- else -%}
{{ cart.total_price | money }}
{%- endif -%}
{%- endif -%}
{%- if render_menu -%}
<button class=“header__icon header__icon–button header__icon–menu-navigation focus-inset”
aria-controls=“MenuNavigationDrawer”
aria-haspopup=“dialog”
aria-expanded=“false”
aria-label=“{{ ‘sections.header.menu’ | t }}”
data-mobile-navigation-toggle
{%- endif -%}
{%- if render_menu -%}
{{ 'sections.header.menu' | t }}
{% render 'menu-navigation', menu: menu, is_mobile: true %}
{%- endif -%}