How To Add Custom Button On Header In Shopify - eCommerce Thesis

How To Add Custom Button On Header In Shopify

CODE : header.liquid front of : class=”desktop-localization-wrapper”>

<a href="#" class="custom-button">Our Store 𖡡</a>
{% comment %}
<!-- Designed by Foysal Ahmed YouTube Channel -->
{% endcomment %}

.custom-button {
  background-color: #000000 !important;
  color: #ffffff !important;
  border: none;
  padding: 0.5rem 1.1rem;
  cursor: pointer;
  font-weight: 500;
  font-size: 1.6rem;
  min-height: auto;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
  border-radius: 0.5rem;
  text-decoration: none;
}

.custom-button:hover {
  background-color: #333333 !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

.header-country-selector {
  display: flex;
  align-items: center;
}

.header__icons.custom-button {
  margin-left: 1rem;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

.localization-form__select {
  min-height: auto;
  vertical-align: middle;
}

@media screen and (max-width: 749px) {
  .custom-button {
    font-size: 0.75rem;
    padding: 0.50rem 0.88rem;
    border-radius: 0.2rem;
  }
  
  .header__icons.custom-button {
    margin-left: 0.4rem;
  }
  
  .header--mobile-center {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .header__icons {
    display: flex;
    align-items: center;
    height: 100%;
  }
  
  .header__icons--localization {
    display: flex;
    align-items: center;
    margin-right: auto;
  }
  
  .desktop-localization-wrapper {
    display: flex;
    align-items: center;
  }
}