Snippets Collections
<script>
  let items = document.querySelector(".header__inline-menu").querySelectorAll("details");
  console.log(items)
  items.forEach(item => {
    item.addEventListener("mouseover", () => {
      item.setAttribute("open", true);
      item.querySelector("ul").addEventListener("mouseleave", () => {
        item.removeAttribute("open");
      });
    item.addEventListener("mouseleave", () => {
      item.removeAttribute("open");
    });
  });
  
  });
</script>
<span class="badge price__badge-sale color-{{ settings.sale_badge_color_scheme }}">
      -{{ card_product.compare_at_price | minus: card_product.price | times: 100 | divided_by: card_product.compare_at_price }}% OFF
    </span>
.card__badge .badge{
    border-radius: 0;
    font-size: 13px;
    background-color: red;
    font-weight: bold;
    border: none;
  }
  
  .price .price__badge-sale {
    border-radius: 0;
    font-size: 13px;
    background-color: red;
    font-weight: bold;
    border: none;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
<span class="badge price__badge-sale color-{{ settings.sale_badge_color_scheme }}">
      -{{ compare_at_price | minus: price | times: 100 | divided_by: compare_at_price }}% OFF
    </span>
filterMedia() {
    
         $('[thumbnail-color]').hide();
    
    var selected_variant = this.currentVariant.featured_media.alt;
    
    var selected_attribute = '[thumbnail-color="' + selected_variant + '"]';
    
    if (selected_variant == selected_variant) {
      
      $(selected_attribute).show();

    } }
star

Thu Aug 25 2022 12:37:09 GMT+0000 (Coordinated Universal Time) https://websensepro.comblog/how-to-show-drop-down-on-hover-in-dawn-theme/

#dropdown #hoveraffect #dawntheme
star

Tue Apr 12 2022 18:26:40 GMT+0000 (Coordinated Universal Time)

#shopify #dawntheme #discount
star

Tue Apr 12 2022 11:06:53 GMT+0000 (Coordinated Universal Time)

#shopify #dawntheme #discount
star

Tue Apr 12 2022 10:42:45 GMT+0000 (Coordinated Universal Time) htps://websensepro.com/blog/how-to-show-discount-on-product-page-dawn-theme/

#shopify #dawntheme #discount
star

Mon Mar 28 2022 10:38:54 GMT+0000 (Coordinated Universal Time)

#shopify #variantimages #dawntheme

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension