Skip to content

Instantly share code, notes, and snippets.

<style>
@media screen and (min-width: 750px) {
.product--thumbnail .product__media-list, .product--thumbnail_slider .product__media-list {
padding-bottom: 0 !important;
padding: 0;
margin: 0;
gap: 0;
<script data-source="ezfycode.com">
window.ezfyProductSliderArrows = window.ezfyProductSliderArrows || {};
ezfyProductSliderArrows = (function () {
const SELECTORS = {
mainSlider: "slider-component[id*='GalleryViewer']",
mainSliderList: "slider-component[id*='GalleryViewer'] ul",
thumbnailSlider: "slider-component[id*='GalleryThumb']",
thumbnailSliderList: "slider-component[id*='GalleryThumb'] ul",
{% comment %}
Always visible search bar by ezfycode.com
{% endcomment %}
{% assign predictive_search_height = 500 %}
{% assign search_box_width = 350 %}
<div class="EzfyHeaderSearch EzfyHeaderSearch--mobile">
{%- if settings.predictive_search_enabled -%}
<predictive-search class="search-modal__form" data-loading-text="{{ 'accessibility.loading' | t }}">
{% comment %}
Always visible search bar by ezfycode.com
{% endcomment %}
{% assign predictive_search_height = 500 %}
{% assign search_box_width = 350 %}
<div class="EzfyHeaderSearch EzfyHeaderSearch--mobile">
{%- if settings.predictive_search_enabled -%}
<predictive-search class="search-modal__form" data-loading-text="{{ 'accessibility.loading' | t }}">
{% if template contains 'product' %}
<div
style="height:0;width:0;display:none"
data_ezfy_zoom_type_mobile="{{ settings.ezfy_zoom_type_mobile }}"
data_ezfy_zoom_type="{{ settings.ezfy_zoom_type }}"
data_ezfy_zoom_block_slider="false"
></div>
<style>
.pswp{display:none;position:absolute;width:100%;height:100%;left:0;top:0;overflow:hidden;-ms-touch-action:none;touch-action:none;z-index:1500;-webkit-text-size-adjust:100%;-webkit-backface-visibility:hidden;outline:0}.pswp *{-webkit-box-sizing:border-box;box-sizing:border-box}.pswp img{max-width:none}.pswp--animate_opacity{opacity:.001;will-change:opacity;-webkit-transition:opacity 333ms cubic-bezier(.4,0,.22,1);transition:opacity 333ms cubic-bezier(.4,0,.22,1)}.pswp--open{display:block}.pswp--zoom-allowed .pswp__img{cursor:-webkit-zoom-in;cursor:-moz-zoom-in;cursor:zoom-in}.pswp--zoomed-in .pswp__img{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.pswp--dragging .pswp__img{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.
{% if section.settings.enable %}
<style data-custom-fonts>
{% assign items = section.blocks | reverse %}
{% for block in items %}
{% assign name = block.settings.name %}
{% assign url = block.settings.custom_font_url %}
@dpw1
dpw1 / file.js
Last active November 19, 2025 10:11
Script shopiy scraper
/*
run in the browser at https://community.shopify.com/
*/
/*
PROMPT:
I'm a shopify developer looking for ideas to record youtube videos and write technical blogs for merchants who do not know coding.
{% if request.page_type == 'product' %}
<script>
window.buttonPriceHandlerVariants = [
{% for variant in product.variants %}
{
<style>
.EzfyColorVariants{
display: flex;
opacity: 0;
transition: all .32s;
align-items: center;
flex-wrap: wrap;
}
{% if section.settings.enable %}
<style>
.EzfyColorVariants{
display: flex;
opacity: 0;
transition: all .32s;
align-items: center;
flex-wrap: wrap;
}