This is code customization work not done only using CSS Please provided liquid code.
Thanks!
//HEADER LIQUID
{%- if settings.predictive_search_enabled -%} {%- endif -%} {%- if section.settings.menu_type_desktop == 'mega' -%} {{ 'component-mega-menu.css' | asset_url | stylesheet_tag }} {%- endif -%} {%- if section.settings.enable_country_selector or section.settings.enable_language_selector -%} {{ 'component-localization-form.css' | asset_url | stylesheet_tag: preload: true }} {%- endif -%}{%- if settings.cart_type == âdrawerâ -%}
{{ âcomponent-cart-drawer.cssâ | asset_url | stylesheet_tag }}
{{ âcomponent-cart.cssâ | asset_url | stylesheet_tag }}
{{ âcomponent-totals.cssâ | asset_url | stylesheet_tag }}
{{ âcomponent-price.cssâ | asset_url | stylesheet_tag }}
{{ âcomponent-discounts.cssâ | asset_url | stylesheet_tag }}
{{ âcomponent-loading-overlay.cssâ | asset_url | stylesheet_tag }}
{%- endif -%}
{{ âcomponent-list-menu.cssâ | asset_url | stylesheet_tag }}
{{ âcomponent-search.cssâ | asset_url | stylesheet_tag }}
{{ âcomponent-menu-drawer.cssâ | asset_url | stylesheet_tag }}
{{ âcomponent-cart-notification.cssâ | asset_url | stylesheet_tag }}
{{ âcomponent-cart-items.cssâ | asset_url | stylesheet_tag }}
{%- style -%}
.header {
padding-top: {{ section.settings.padding_top | times: 0.5 | round: 0 }}px;
padding-bottom: {{ section.settings.padding_bottom | times: 0.5 | round: 0 }}px;
}
.section-header {
position: sticky; /* This is for fixing a Safari z-index issue. PR #2147 */
margin-bottom: {{ section.settings.margin_bottom | times: 0.75 | round: 0 }}px;
}
@media screen and (min-width: 750px) {
.section-header {
margin-bottom: {{ section.settings.margin_bottom }}px;
}
}
@media screen and (min-width: 990px) {
.header {
padding-top: {{ section.settings.padding_top }}px;
padding-bottom: {{ section.settings.padding_bottom }}px;
}
}
{%- endstyle -%}
{%- if settings.cart_type == âdrawerâ -%}
{%- endif -%}
{%- if section.settings.enable_country_selector or section.settings.enable_language_selector -%}
{%- endif -%}
{%- liquid
for block in section.blocks
if block.type == â@appâ
assign has_app_block = true
endif
endfor
-%}
<{% if section.settings.sticky_header_type != ânoneâ %}sticky-header data-sticky-type=â{{ section.settings.sticky_header_type }}â{% else %}div{% endif %} class=âheader-wrapper color-{{ section.settings.color_scheme }} gradient{% if section.settings.show_line_separator %} header-wrapperâborder-bottom{% endif %}â>
{%- if section.settings.menu != blank -%}{% render 'icon-hamburger' %} {% render 'icon-close' %}
-
{%- for link in section.settings.menu.links -%}
-
{%- if link.links != blank -%}
{%- else -%} {{ link.title | escape }} {%- endif -%}
{{ link.title | escape }} {% render 'icon-arrow' %} {% render 'icon-caret' %}
{% render 'icon-arrow' %} {{ link.title | escape }}-
{%- for childlink in link.links -%}
-
{%- if childlink.links == blank -%}
{{ childlink.title | escape }}
{%- else -%}
{%- endif -%}
{{ childlink.title | escape }} {% render 'icon-arrow' %} {% render 'icon-caret' %}
{% render 'icon-arrow' %} {{ childlink.title | escape }}-
{%- for grandchildlink in childlink.links -%}
- {{ grandchildlink.title | escape }} {%- endfor -%}
{%- endfor -%}
{%- endfor -%}
-
{%- if childlink.links == blank -%}
{{ childlink.title | escape }}
{%- else -%}
{{ 'localization.country_label' | t }}
{%- render 'country-localization', localPosition: 'HeaderCountryMobile' -%}{%- if section.settings.enable_language_selector and localization.available_languages.size > 1 -%}
{%- form âlocalizationâ, id: âHeaderLanguageMobileFormâ, class: âlocalization-formâ -%}
{{ 'localization.language_label' | t }}
{%- render 'language-localization', localPosition: 'HeaderLanguageMobile' -%}-
{%- if settings.social_twitter_link != blank -%}
- {%- render 'icon-twitter' -%} {{ 'general.social.links.twitter' | t }} {%- endif -%} {%- if settings.social_facebook_link != blank -%}
- {%- render 'icon-facebook' -%} {{ 'general.social.links.facebook' | t }} {%- endif -%} {%- if settings.social_pinterest_link != blank -%}
- {%- render 'icon-pinterest' -%} {{ 'general.social.links.pinterest' | t }} {%- endif -%} {%- if settings.social_instagram_link != blank -%}
- {%- render 'icon-instagram' -%} {{ 'general.social.links.instagram' | t }} {%- endif -%} {%- if settings.social_tiktok_link != blank -%}
- {%- render 'icon-tiktok' -%} {{ 'general.social.links.tiktok' | t }} {%- endif -%} {%- if settings.social_tumblr_link != blank -%}
- {%- render 'icon-tumblr' -%} {{ 'general.social.links.tumblr' | t }} {%- endif -%} {%- if settings.social_snapchat_link != blank -%}
- {%- render 'icon-snapchat' -%} {{ 'general.social.links.snapchat' | t }} {%- endif -%} {%- if settings.social_youtube_link != blank -%}
- {%- render 'icon-youtube' -%} {{ 'general.social.links.youtube' | t }} {%- endif -%} {%- if settings.social_vimeo_link != blank -%}
- {%- render 'icon-vimeo' -%} {{ 'general.social.links.vimeo' | t }} {%- endif -%}
{%- if section.settings.logo_position == âtop-centerâ or section.settings.menu == blank -%}
{%- if settings.predictive_search_enabled -%}
{%- endif -%}
{%- if section.settings.logo_position != âmiddle-centerâ -%}
{%- if request.page_type == âindexâ -%}
{%- endif -%}
{%- if settings.logo != blank -%}
{%- assign logo_alt = settings.logo.alt | default: shop.name | escape -%}
{%- assign logo_height = settings.logo_width | divided_by: settings.logo.aspect_ratio -%}
{% capture sizes %}(max-width: {{ settings.logo_width | times: 2 }}px) 50vw, {{ settings.logo_width }}px{% endcapture %}
{% capture widths %}{{ settings.logo_width }}, {{ settings.logo_width | times: 1.5 | round }}, {{ settings.logo_width | times: 2 }}{% endcapture %}
{{ settings.logo | image_url: width: 600 | image_tag:
class: 'header__heading-logo motion-reduce',
widths: widths,
height: logo_height,
width: settings.logo_width,
alt: logo_alt,
sizes: sizes,
preload: true
}}
{%- else -%}
{{ shop.name }}
{%- endif -%}
{%- if request.page_type == 'index' -%}
{%- endif -%}
{%- endif -%}
{%- if section.settings.menu != blank -%}
{%- if section.settings.menu_type_desktop == âdropdownâ -%}
-
{%- for link in section.settings.menu.links -%}
-
{%- if link.links != blank -%}
{%- else -%} {{ link.title | escape }} {%- endif -%}
{{ link.title | escape }} {% render 'icon-caret' %}
-
{%- for childlink in link.links -%}
-
{%- if childlink.links == blank -%}
{{ childlink.title | escape }}
{%- else -%}
{%- endif -%}
{{ childlink.title | escape }} {% render 'icon-caret' %}
-
{%- for grandchildlink in childlink.links -%}
- {{ grandchildlink.title | escape }} {%- endfor -%}
{%- endfor -%}
{%- endfor -%}
-
{%- if childlink.links == blank -%}
{{ childlink.title | escape }}
{%- else -%}
-
{%- for link in section.settings.menu.links -%}
-
{%- if link.links != blank -%}
{%- else -%} {{ link.title | escape }} {%- endif -%}
{{ link.title | escape }} {% render 'icon-caret' %}
-
{%- for childlink in link.links -%}
-
{{ childlink.title | escape }}
{%- if childlink.links != blank -%}
-
{%- for grandchildlink in childlink.links -%}
- {{ grandchildlink.title | escape }} {%- endfor -%}
{%- endfor -%}
{%- endfor -%}
-
{{ childlink.title | escape }}
{%- if childlink.links != blank -%}
{%- if section.settings.logo_position == âmiddle-centerâ -%}
{%- if request.page_type == âindexâ -%}
{%- endif -%}
{%- if settings.logo != blank -%}
{%- assign logo_alt = settings.logo.alt | default: shop.name | escape -%}
{%- assign logo_height = settings.logo_width | divided_by: settings.logo.aspect_ratio -%}
{% capture sizes %}(min-width: 750px) {{ settings.logo_width }}px, 50vw{% endcapture %}
{% capture widths %}{{ settings.logo_width }}, {{ settings.logo_width | times: 1.5 | round }}, {{ settings.logo_width | times: 2 }}{% endcapture %}
{{ settings.logo | image_url: width: 600 | image_tag:
class: 'header__heading-logo',
widths: widths,
height: logo_height,
width: settings.logo_width,
alt: logo_alt,
sizes: sizes,
preload: true
}}
{%- else -%}
{{ shop.name }}
{%- endif -%}
{%- if request.page_type == 'index' -%}
{%- endif -%}
{%- endif -%}
{{ 'localization.country_label' | t }}
{%- render 'country-localization', localPosition: 'HeaderCountry' -%}{%- if section.settings.enable_language_selector and localization.available_languages.size > 1 -%}
{%- form âlocalizationâ, id: âHeaderLanguageFormâ, class: âlocalization-formâ -%}
{{ 'localization.language_label' | t }}
{%- render 'language-localization', localPosition: 'HeaderLanguage' -%}
{%- if shop.customer_accounts_enabled -%}
{% render âicon-accountâ %}
{%- liquid
if customer
echo âcustomer.account_fallbackâ | t
else
echo âcustomer.log_inâ | t
endif
-%}
{%- endif -%}
{%- for block in section.blocks -%}
{%- case block.type -%}
{%- when â@appâ -%}
{% render block %}
{%- endcase -%}
{%- endfor -%}
{%- if settings.cart_type == ânotificationâ -%}
{%- render âcart-notificationâ, color_scheme: section.settings.color_scheme, desktop_menu_type: section.settings.menu_type_desktop -%}
{%- endif -%}
{% javascript %}
class StickyHeader extends HTMLElement {
constructor() {
super();
}
connectedCallback() {
this.header = document.querySelector(â.section-headerâ);
this.headerIsAlwaysSticky = this.getAttribute(âdata-sticky-typeâ) === âalwaysâ || this.getAttribute(âdata-sticky-typeâ) === âreduce-logo-sizeâ;
this.headerBounds = {};
this.setHeaderHeight();
window.matchMedia(â(max-width: 990px)â).addEventListener(âchangeâ, this.setHeaderHeight.bind(this));
if (this.headerIsAlwaysSticky) {
this.header.classList.add(âshopify-section-header-stickyâ);
};
this.currentScrollTop = 0;
this.preventReveal = false;
this.predictiveSearch = this.querySelector(âpredictive-searchâ);
this.onScrollHandler = this.onScroll.bind(this);
this.hideHeaderOnScrollUp = () => this.preventReveal = true;
this.addEventListener(âpreventHeaderRevealâ, this.hideHeaderOnScrollUp);
window.addEventListener(âscrollâ, this.onScrollHandler, false);
this.createObserver();
}
setHeaderHeight() {
document.documentElement.style.setProperty(ââheader-heightâ, ${this.header.offsetHeight}px);
}
disconnectedCallback() {
this.removeEventListener(âpreventHeaderRevealâ, this.hideHeaderOnScrollUp);
window.removeEventListener(âscrollâ, this.onScrollHandler);
}
createObserver() {
let observer = new IntersectionObserver((entries, observer) => {
this.headerBounds = entries[0].intersectionRect;
observer.disconnect();
});
observer.observe(this.header);
}
onScroll() {
const scrollTop = window.pageYOffset || document.documentElement.scrollTop;
if (this.predictiveSearch && this.predictiveSearch.isOpen) return;
if (scrollTop > this.currentScrollTop && scrollTop > this.headerBounds.bottom) {
this.header.classList.add(âscrolled-past-headerâ);
if (this.preventHide) return;
requestAnimationFrame(this.hide.bind(this));
} else if (scrollTop < this.currentScrollTop && scrollTop > this.headerBounds.bottom) {
this.header.classList.add(âscrolled-past-headerâ);
if (!this.preventReveal) {
requestAnimationFrame(this.reveal.bind(this));
} else {
window.clearTimeout(this.isScrolling);
this.isScrolling = setTimeout(() => {
this.preventReveal = false;
}, 66);
requestAnimationFrame(this.hide.bind(this));
}
} else if (scrollTop <= this.headerBounds.top) {
this.header.classList.remove(âscrolled-past-headerâ);
requestAnimationFrame(this.reset.bind(this));
}
this.currentScrollTop = scrollTop;
}
hide() {
if (this.headerIsAlwaysSticky) return;
this.header.classList.add(âshopify-section-header-hiddenâ, âshopify-section-header-stickyâ);
this.closeMenuDisclosure();
this.closeSearchModal();
}
reveal() {
if (this.headerIsAlwaysSticky) return;
this.header.classList.add(âshopify-section-header-stickyâ, âanimateâ);
this.header.classList.remove(âshopify-section-header-hiddenâ);
}
reset() {
if (this.headerIsAlwaysSticky) return;
this.header.classList.remove(âshopify-section-header-hiddenâ, âshopify-section-header-stickyâ, âanimateâ);
}
closeMenuDisclosure() {
this.disclosures = this.disclosures || this.header.querySelectorAll(âheader-menuâ);
this.disclosures.forEach(disclosure => disclosure.close());
}
closeSearchModal() {
this.searchModal = this.searchModal || this.header.querySelector(âdetails-modalâ);
this.searchModal.close(false);
}
}
customElements.define(âsticky-headerâ, StickyHeader);
{% endjavascript %}
{%- if request.page_type == âindexâ -%}
{% assign potential_action_target = request.origin | append: routes.search_url | append: â?q={search_term_string}â %}
{%- endif -%}
{% schema %}
{
ânameâ: ât:sections.header.nameâ,
âclassâ: âsection-headerâ,
âmax_blocksâ: 3,
âsettingsâ: [
{
âtypeâ: âselectâ,
âidâ: âlogo_positionâ,
âoptionsâ: [
{
âvalueâ: âtop-leftâ,
âlabelâ: ât:sections.header.settings.logo_position.options__2.labelâ
},
{
âvalueâ: âtop-centerâ,
âlabelâ: ât:sections.header.settings.logo_position.options__3.labelâ
},
{
âvalueâ: âmiddle-leftâ,
âlabelâ: ât:sections.header.settings.logo_position.options__1.labelâ
},
{
âvalueâ: âmiddle-centerâ,
âlabelâ: ât:sections.header.settings.logo_position.options__4.labelâ
}
],
âdefaultâ: âmiddle-leftâ,
âlabelâ: ât:sections.header.settings.logo_position.labelâ,
âinfoâ: ât:sections.header.settings.logo_help.contentâ
},
{
âtypeâ: âlink_listâ,
âidâ: âmenuâ,
âdefaultâ: âmain-menuâ,
âlabelâ: ât:sections.header.settings.menu.labelâ
},
{
âtypeâ: âselectâ,
âidâ: âmenu_type_desktopâ,
âoptionsâ: [
{
âvalueâ: âdropdownâ,
âlabelâ: ât:sections.header.settings.menu_type_desktop.options__1.labelâ
},
{
âvalueâ: âmegaâ,
âlabelâ: ât:sections.header.settings.menu_type_desktop.options__2.labelâ
},
{
âvalueâ: âdrawerâ,
âlabelâ: ât:sections.header.settings.menu_type_desktop.options__3.labelâ
}
],
âdefaultâ: âdropdownâ,
âlabelâ: ât:sections.header.settings.menu_type_desktop.labelâ,
âinfoâ: ât:sections.header.settings.menu_type_desktop.infoâ
},
{
âtypeâ: âselectâ,
âidâ: âsticky_header_typeâ,
âoptionsâ: [
{
âvalueâ: ânoneâ,
âlabelâ: ât:sections.header.settings.sticky_header_type.options__1.labelâ
},
{
âvalueâ: âon-scroll-upâ,
âlabelâ: ât:sections.header.settings.sticky_header_type.options__2.labelâ
},
{
âvalueâ: âalwaysâ,
âlabelâ: ât:sections.header.settings.sticky_header_type.options__3.labelâ
},
{
âvalueâ: âreduce-logo-sizeâ,
âlabelâ: ât:sections.header.settings.sticky_header_type.options__4.labelâ
}
],
âdefaultâ: âon-scroll-upâ,
âlabelâ: ât:sections.header.settings.sticky_header_type.labelâ
},
{
âtypeâ: âcheckboxâ,
âidâ: âshow_line_separatorâ,
âdefaultâ: true,
âlabelâ: ât:sections.header.settings.show_line_separator.labelâ
},
{
âtypeâ: âselectâ,
âidâ: âcolor_schemeâ,
âoptionsâ: [
{
âvalueâ: âaccent-1â,
âlabelâ: ât:sections.all.colors.accent_1.labelâ
},
{
âvalueâ: âaccent-2â,
âlabelâ: ât:sections.all.colors.accent_2.labelâ
},
{
âvalueâ: âbackground-1â,
âlabelâ: ât:sections.all.colors.background_1.labelâ
},
{
âvalueâ: âbackground-2â,
âlabelâ: ât:sections.all.colors.background_2.labelâ
},
{
âvalueâ: âinverseâ,
âlabelâ: ât:sections.all.colors.inverse.labelâ
}
],
âdefaultâ: âbackground-1â,
âlabelâ: ât:sections.all.colors.labelâ
},
{
âtypeâ: âheaderâ,
âcontentâ: ât:sections.header.settings.header__3.contentâ,
âinfoâ: ât:sections.header.settings.header__4.infoâ
},
{
âtypeâ: âcheckboxâ,
âidâ: âenable_country_selectorâ,
âdefaultâ: false,
âlabelâ: ât:sections.header.settings.enable_country_selector.labelâ
},
{
âtypeâ: âheaderâ,
âcontentâ: ât:sections.header.settings.header__5.contentâ,
âinfoâ: ât:sections.header.settings.header__6.infoâ
},
{
âtypeâ: âcheckboxâ,
âidâ: âenable_language_selectorâ,
âdefaultâ: false,
âlabelâ: ât:sections.header.settings.enable_language_selector.labelâ
},
{
âtypeâ: âheaderâ,
âcontentâ: ât:sections.header.settings.mobile_layout.contentâ
},
{
âtypeâ: âselectâ,
âidâ: âmobile_logo_positionâ,
âoptionsâ: [
{
âvalueâ: âcenterâ,
âlabelâ: ât:sections.header.settings.mobile_logo_position.options__1.labelâ
},
{
âvalueâ: âleftâ,
âlabelâ: ât:sections.header.settings.mobile_logo_position.options__2.labelâ
}
],
âdefaultâ: âcenterâ,
âlabelâ: ât:sections.header.settings.mobile_logo_position.labelâ
},
{
âtypeâ: âheaderâ,
âcontentâ: ât:sections.all.spacingâ
},
{
âtypeâ: ârangeâ,
âidâ: âmargin_bottomâ,
âminâ: 0,
âmaxâ: 100,
âstepâ: 4,
âunitâ: âpxâ,
âlabelâ: ât:sections.header.settings.margin_bottom.labelâ,
âdefaultâ: 0
},
{
âtypeâ: âheaderâ,
âcontentâ: ât:sections.all.padding.section_padding_headingâ
},
{
âtypeâ: ârangeâ,
âidâ: âpadding_topâ,
âminâ: 0,
âmaxâ: 36,
âstepâ: 4,
âunitâ: âpxâ,
âlabelâ: ât:sections.all.padding.padding_topâ,
âdefaultâ: 20
},
{
âtypeâ: ârangeâ,
âidâ: âpadding_bottomâ,
âminâ: 0,
âmaxâ: 36,
âstepâ: 4,
âunitâ: âpxâ,
âlabelâ: ât:sections.all.padding.padding_bottomâ,
âdefaultâ: 20
}
],
âblocksâ: [
{
âtypeâ: â@appâ
}
]
}
{% endschema %}
//THEME LIQUID
{%- if settings.favicon != blank -%}
{%- endif -%}{%- unless settings.type_header_font.system? and settings.type_body_font.system? -%}
{%- endunless -%} {{ page_title }} {%- if current_tags %} â tagged "{{ current_tags | join: ', ' }}"{% endif -%} {%- if current_page != 1 %} â Page {{ current_page }}{% endif -%} {%- unless page_title contains shop.name %} â {{ shop.name }}{% endunless -%}{% if page_description %}
{% endif %}
{% render âmeta-tagsâ %}
{{ content_for_header }}
{%- liquid
assign body_font_bold = settings.type_body_font | font_modify: âweightâ, âboldâ
assign body_font_italic = settings.type_body_font | font_modify: âstyleâ, âitalicâ
assign body_font_bold_italic = body_font_bold | font_modify: âstyleâ, âitalicâ
%}
{% style %}
{{ settings.type_body_font | font_face: font_display: âswapâ }}
{{ body_font_bold | font_face: font_display: âswapâ }}
{{ body_font_italic | font_face: font_display: âswapâ }}
{{ body_font_bold_italic | font_face: font_display: âswapâ }}
{{ settings.type_header_font | font_face: font_display: âswapâ }}
:root {
âfont-body-family: {{ settings.type_body_font.family }}, {{ settings.type_body_font.fallback_families }};
âfont-body-style: {{ settings.type_body_font.style }};
âfont-body-weight: {{ settings.type_body_font.weight }};
âfont-body-weight-bold: {{ settings.type_body_font.weight | plus: 300 | at_most: 1000 }};
âfont-heading-family: {{ settings.type_header_font.family }}, {{ settings.type_header_font.fallback_families }};
âfont-heading-style: {{ settings.type_header_font.style }};
âfont-heading-weight: {{ settings.type_header_font.weight }};
âfont-body-scale: {{ settings.body_scale | divided_by: 100.0 }};
âfont-heading-scale: {{ settings.heading_scale | times: 1.0 | divided_by: settings.body_scale }};
âcolor-base-text: {{ settings.colors_text.red }}, {{ settings.colors_text.green }}, {{ settings.colors_text.blue }};
âcolor-shadow: {{ settings.colors_text.red }}, {{ settings.colors_text.green }}, {{ settings.colors_text.blue }};
âcolor-base-background-1: {{ settings.colors_background_1.red }}, {{ settings.colors_background_1.green }}, {{ settings.colors_background_1.blue }};
âcolor-base-background-2: {{ settings.colors_background_2.red }}, {{ settings.colors_background_2.green }}, {{ settings.colors_background_2.blue }};
âcolor-base-solid-button-labels: {{ settings.colors_solid_button_labels.red }}, {{ settings.colors_solid_button_labels.green }}, {{ settings.colors_solid_button_labels.blue }};
âcolor-base-outline-button-labels: {{ settings.colors_outline_button_labels.red }}, {{ settings.colors_outline_button_labels.green }}, {{ settings.colors_outline_button_labels.blue }};
âcolor-base-accent-1: {{ settings.colors_accent_1.red }}, {{ settings.colors_accent_1.green }}, {{ settings.colors_accent_1.blue }};
âcolor-base-accent-2: {{ settings.colors_accent_2.red }}, {{ settings.colors_accent_2.green }}, {{ settings.colors_accent_2.blue }};
âpayment-terms-background-color: {{ settings.colors_background_1 }};
âgradient-base-background-1: {% if settings.gradient_background_1 != blank %}{{ settings.gradient_background_1 }}{% else %}{{ settings.colors_background_1 }}{% endif %};
âgradient-base-background-2: {% if settings.gradient_background_2 != blank %}{{ settings.gradient_background_2 }}{% else %}{{ settings.colors_background_2 }}{% endif %};
âgradient-base-accent-1: {% if settings.gradient_accent_1 != blank %}{{ settings.gradient_accent_1 }}{% else %}{{ settings.colors_accent_1 }}{% endif %};
âgradient-base-accent-2: {% if settings.gradient_accent_2 != blank %}{{ settings.gradient_accent_2 }}{% else %}{{ settings.colors_accent_2 }}{% endif %};
âmedia-padding: {{ settings.media_padding }}px;
âmedia-border-opacity: {{ settings.media_border_opacity | divided_by: 100.0 }};
âmedia-border-width: {{ settings.media_border_thickness }}px;
âmedia-radius: {{ settings.media_radius }}px;
âmedia-shadow-opacity: {{ settings.media_shadow_opacity | divided_by: 100.0 }};
âmedia-shadow-horizontal-offset: {{ settings.media_shadow_horizontal_offset }}px;
âmedia-shadow-vertical-offset: {{ settings.media_shadow_vertical_offset }}px;
âmedia-shadow-blur-radius: {{ settings.media_shadow_blur }}px;
âmedia-shadow-visible: {% if settings.media_shadow_opacity > 0 %}1{% else %}0{% endif %};
âpage-width: {{ settings.page_width | divided_by: 10 }}rem;
âpage-width-margin: {% if settings.page_width == â1600â %}2{% else %}0{% endif %}rem;
âproduct-card-image-padding: {{ settings.card_image_padding | divided_by: 10.0 }}rem;
âproduct-card-corner-radius: {{ settings.card_corner_radius | divided_by: 10.0 }}rem;
âproduct-card-text-alignment: {{ settings.card_text_alignment }};
âproduct-card-border-width: {{ settings.card_border_thickness | divided_by: 10.0 }}rem;
âproduct-card-border-opacity: {{ settings.card_border_opacity | divided_by: 100.0 }};
âproduct-card-shadow-opacity: {{ settings.card_shadow_opacity | divided_by: 100.0 }};
âproduct-card-shadow-visible: {% if settings.card_shadow_opacity > 0 %}1{% else %}0{% endif %};
âproduct-card-shadow-horizontal-offset: {{ settings.card_shadow_horizontal_offset | divided_by: 10.0 }}rem;
âproduct-card-shadow-vertical-offset: {{ settings.card_shadow_vertical_offset | divided_by: 10.0 }}rem;
âproduct-card-shadow-blur-radius: {{ settings.card_shadow_blur | divided_by: 10.0 }}rem;
âcollection-card-image-padding: {{ settings.collection_card_image_padding | divided_by: 10.0 }}rem;
âcollection-card-corner-radius: {{ settings.collection_card_corner_radius | divided_by: 10.0 }}rem;
âcollection-card-text-alignment: {{ settings.collection_card_text_alignment }};
âcollection-card-border-width: {{ settings.collection_card_border_thickness | divided_by: 10.0 }}rem;
âcollection-card-border-opacity: {{ settings.collection_card_border_opacity | divided_by: 100.0 }};
âcollection-card-shadow-opacity: {{ settings.collection_card_shadow_opacity | divided_by: 100.0 }};
âcollection-card-shadow-visible: {% if settings.collection_card_shadow_opacity > 0 %}1{% else %}0{% endif %};
âcollection-card-shadow-horizontal-offset: {{ settings.collection_card_shadow_horizontal_offset | divided_by: 10.0 }}rem;
âcollection-card-shadow-vertical-offset: {{ settings.collection_card_shadow_vertical_offset | divided_by: 10.0 }}rem;
âcollection-card-shadow-blur-radius: {{ settings.collection_card_shadow_blur | divided_by: 10.0 }}rem;
âblog-card-image-padding: {{ settings.blog_card_image_padding | divided_by: 10.0 }}rem;
âblog-card-corner-radius: {{ settings.blog_card_corner_radius | divided_by: 10.0 }}rem;
âblog-card-text-alignment: {{ settings.blog_card_text_alignment }};
âblog-card-border-width: {{ settings.blog_card_border_thickness | divided_by: 10.0 }}rem;
âblog-card-border-opacity: {{ settings.blog_card_border_opacity | divided_by: 100.0 }};
âblog-card-shadow-opacity: {{ settings.blog_card_shadow_opacity | divided_by: 100.0 }};
âblog-card-shadow-visible: {% if settings.blog_card_shadow_opacity > 0 %}1{% else %}0{% endif %};
âblog-card-shadow-horizontal-offset: {{ settings.blog_card_shadow_horizontal_offset | divided_by: 10.0 }}rem;
âblog-card-shadow-vertical-offset: {{ settings.blog_card_shadow_vertical_offset | divided_by: 10.0 }}rem;
âblog-card-shadow-blur-radius: {{ settings.blog_card_shadow_blur | divided_by: 10.0 }}rem;
âbadge-corner-radius: {{ settings.badge_corner_radius | divided_by: 10.0 }}rem;
âpopup-border-width: {{ settings.popup_border_thickness }}px;
âpopup-border-opacity: {{ settings.popup_border_opacity | divided_by: 100.0 }};
âpopup-corner-radius: {{ settings.popup_corner_radius }}px;
âpopup-shadow-opacity: {{ settings.popup_shadow_opacity | divided_by: 100.0 }};
âpopup-shadow-horizontal-offset: {{ settings.popup_shadow_horizontal_offset }}px;
âpopup-shadow-vertical-offset: {{ settings.popup_shadow_vertical_offset }}px;
âpopup-shadow-blur-radius: {{ settings.popup_shadow_blur }}px;
âdrawer-border-width: {{ settings.drawer_border_thickness }}px;
âdrawer-border-opacity: {{ settings.drawer_border_opacity | divided_by: 100.0 }};
âdrawer-shadow-opacity: {{ settings.drawer_shadow_opacity | divided_by: 100.0 }};
âdrawer-shadow-horizontal-offset: {{ settings.drawer_shadow_horizontal_offset }}px;
âdrawer-shadow-vertical-offset: {{ settings.drawer_shadow_vertical_offset }}px;
âdrawer-shadow-blur-radius: {{ settings.drawer_shadow_blur }}px;
âspacing-sections-desktop: {{ settings.spacing_sections }}px;
âspacing-sections-mobile: {% if settings.spacing_sections < 24 %}{{ settings.spacing_sections }}{% else %}{{ settings.spacing_sections | times: 0.7 | round | at_least: 20 }}{% endif %}px;
âgrid-desktop-vertical-spacing: {{ settings.spacing_grid_vertical }}px;
âgrid-desktop-horizontal-spacing: {{ settings.spacing_grid_horizontal }}px;
âgrid-mobile-vertical-spacing: {{ settings.spacing_grid_vertical | divided_by: 2 }}px;
âgrid-mobile-horizontal-spacing: {{ settings.spacing_grid_horizontal | divided_by: 2 }}px;
âtext-boxes-border-opacity: {{ settings.text_boxes_border_opacity | divided_by: 100.0 }};
âtext-boxes-border-width: {{ settings.text_boxes_border_thickness }}px;
âtext-boxes-radius: {{ settings.text_boxes_radius }}px;
âtext-boxes-shadow-opacity: {{ settings.text_boxes_shadow_opacity | divided_by: 100.0 }};
âtext-boxes-shadow-visible: {% if settings.text_boxes_shadow_opacity > 0 %}1{% else %}0{% endif %};
âtext-boxes-shadow-horizontal-offset: {{ settings.text_boxes_shadow_horizontal_offset }}px;
âtext-boxes-shadow-vertical-offset: {{ settings.text_boxes_shadow_vertical_offset }}px;
âtext-boxes-shadow-blur-radius: {{ settings.text_boxes_shadow_blur }}px;
âbuttons-radius: {{ settings.buttons_radius }}px;
âbuttons-radius-outset: {% if settings.buttons_radius > 0 %}{{ settings.buttons_radius | plus: settings.buttons_border_thickness }}{% else %}0{% endif %}px;
âbuttons-border-width: {% if settings.buttons_border_opacity > 0 %}{{ settings.buttons_border_thickness }}{% else %}0{% endif %}px;
âbuttons-border-opacity: {{ settings.buttons_border_opacity | divided_by: 100.0 }};
âbuttons-shadow-opacity: {{ settings.buttons_shadow_opacity | divided_by: 100.0 }};
âbuttons-shadow-visible: {% if settings.buttons_shadow_opacity > 0 %}1{% else %}0{% endif %};
âbuttons-shadow-horizontal-offset: {{ settings.buttons_shadow_horizontal_offset }}px;
âbuttons-shadow-vertical-offset: {{ settings.buttons_shadow_vertical_offset }}px;
âbuttons-shadow-blur-radius: {{ settings.buttons_shadow_blur }}px;
âbuttons-border-offset: {% if settings.buttons_radius > 0 or settings.buttons_shadow_opacity > 0 %}0.3{% else %}0{% endif %}px;
âinputs-radius: {{ settings.inputs_radius }}px;
âinputs-border-width: {{ settings.inputs_border_thickness }}px;
âinputs-border-opacity: {{ settings.inputs_border_opacity | divided_by: 100.0 }};
âinputs-shadow-opacity: {{ settings.inputs_shadow_opacity | divided_by: 100.0 }};
âinputs-shadow-horizontal-offset: {{ settings.inputs_shadow_horizontal_offset }}px;
âinputs-margin-offset: {% if settings.inputs_shadow_vertical_offset != 0 and settings.inputs_shadow_opacity > 0 %}{{ settings.inputs_shadow_vertical_offset | abs }}{% else %}0{% endif %}px;
âinputs-shadow-vertical-offset: {{ settings.inputs_shadow_vertical_offset }}px;
âinputs-shadow-blur-radius: {{ settings.inputs_shadow_blur }}px;
âinputs-radius-outset: {% if settings.inputs_radius > 0 %}{{ settings.inputs_radius | plus: settings.inputs_border_thickness }}{% else %}0{% endif %}px;
âvariant-pills-radius: {{ settings.variant_pills_radius }}px;
âvariant-pills-border-width: {{ settings.variant_pills_border_thickness }}px;
âvariant-pills-border-opacity: {{ settings.variant_pills_border_opacity | divided_by: 100.0 }};
âvariant-pills-shadow-opacity: {{ settings.variant_pills_shadow_opacity | divided_by: 100.0 }};
âvariant-pills-shadow-horizontal-offset: {{ settings.variant_pills_shadow_horizontal_offset }}px;
âvariant-pills-shadow-vertical-offset: {{ settings.variant_pills_shadow_vertical_offset }}px;
âvariant-pills-shadow-blur-radius: {{ settings.variant_pills_shadow_blur }}px;
}
*,
*::before,
*::after {
box-sizing: inherit;
}
html {
box-sizing: border-box;
font-size: calc(var(âfont-body-scale) * 62.5%);
height: 100%;
}
body {
display: grid;
grid-template-rows: auto auto 1fr auto;
grid-template-columns: 100%;
min-height: 100%;
margin: 0;
font-size: 1.5rem;
letter-spacing: 0.06rem;
line-height: calc(1 + 0.8 / var(âfont-body-scale));
font-family: var(âfont-body-family);
font-style: var(âfont-body-style);
font-weight: var(âfont-body-weight);
}
@media screen and (min-width: 750px) {
body {
font-size: 1.6rem;
}
}
{% endstyle %}
{{ âbase.cssâ | asset_url | stylesheet_tag }}
{%- unless settings.type_body_font.system? -%}
{%- endunless -%} {%- unless settings.type_header_font.system? -%} {%- endunless -%}{%- if settings.predictive_search_enabled -%}
{%- endif -%} {{ "accessibility.skip_to_text" | t }}{%- if settings.cart_type == âdrawerâ -%}
{%- render âcart-drawerâ -%}
{%- endif -%}
{% sections âheader-groupâ %}
{{ content_for_layout }}{% sections âfooter-groupâ %}
- {{ 'accessibility.refresh_page' | t }}
- {{ 'accessibility.link_messages.new_window' | t }}
{%- if settings.predictive_search_enabled -%}
{%- endif -%}
.mobile-facets__header .mobile-facets__count { display: none !important; } .product__description.rte.quick-add-hidden>h1 { display: none; } #MegaMenu-Content-3 > ul.mega-menu__list{ gap:10px !important; } #MegaMenu-Content-3 > ul.mega-menu__list >li > a{ color:#000 !important; font-weight: bold !important; } #MegaMenu-Content-4 > ul.mega-menu__list{ gap:10px !important; } #MegaMenu-Content-4 > ul.mega-menu__list >li > a{ color:#000 !important; font-weight: bold !important; } .slider-mobile-gutter .media > img {object-fit: contain !important; object-position: top center !important;} @media screen and (max-width: 749px) { .banner--mobile-bottom .slideshow__text.banner__box {display: none !important;} } @media screen and (max-width: 500px){ .slideshow__media.banner__media.media {height: 230px !important;} } @media screen and (min-width: 768px) { div.image-with-text { padding-left: 0; padding-right: 0; margin-left: 0; margin-right: 0; max-width: 100%; } }Hello, is there a way that the user will not see the search bar in the header of the mobile view when opening the mobile view?
as you can see when I open the mobile view this search bar is still there and disappear for like 2 seconds
then it will become like this which is the outcome that I wanted
I just want to hide the search bar in the first picture.
Hi @niceeee ,
If I have access I will fix it easily and quickly. Thanks









