This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
.announcement-bar { | |
background-color: {{ section.settings.announcement_bar_color }}; | |
text-align: center; | |
text-decoration: none; | |
} | |
.announcement-bar__message { | |
font-size: large; | |
padding: 10px; | |
color: {{ section.settings.announcement_bar_text_color }}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add the follow code in theme.liquid: | |
{% if template contains 'search' %} | |
<meta name="robots" content="noindex"> | |
{% endif %} | |
OR | |
{% if handle contains 'page-handle-you-want-to-exclude' %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function loadjscssfile(filename, filetype) { | |
if (filetype == "js") { //if filename is a external JavaScript file | |
var fileref = document.createElement('script') | |
fileref.setAttribute("type", "text/javascript") | |
fileref.setAttribute("src", filename) | |
} else if (filetype == "css") { //if filename is an external CSS file | |
var fileref = document.createElement("link") | |
fileref.setAttribute("rel", "stylesheet") | |
fileref.setAttribute("type", "text/css") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import Form from "./Form"; | |
import WeatherDiv from "./WeatherDiv"; | |
import "./Form.css" | |
import "./WeatherAPi.css" | |
import Slider from "react-slick" | |
import ActivityCards from "./ActivityCards" | |
import Activity from "./Activity.json" | |
import { Link } from 'react-router-dom' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{%- comment -%} | |
This snippet structures the micro-data using JSON-LD specification. Please note that for Product especially, | |
the schema often changes. We try to output as much info as possible, but Google may add new requirements over time, | |
or change the format of some info | |
LAST UPDATE: May 10th 2023 (we added the "hasMerchantReturnPolicy" and "shippingDetails" to include the shipping and | |
return policy if they have been specified as store policies). | |
{%- endcomment -%} | |
{%- if request.page_type == 'product' -%} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{%- if section.settings.show_product_recommendations -%} | |
<div class="product-recommendations" data-product-id="{{ product.id }}" data-limit="4"> | |
{%- if recommendations.products_count > 0 -%} | |
<h2>{{ section.settings.heading }}</h2> | |
<ul> | |
{%- for product in recommendations.products -%} | |
<li class="product"> | |
<a href="{{ product.url }}"> | |
<img class="product__img" src="{{ product.featured_image | img_url: '300x300' }}" alt="{{ product.featured_image.alt }}" /> | |
<p class="product__title">{{ product.title }}</p> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="page-width"> | |
<div class="grid"> | |
<div class="grid__item medium-up--five-sixths medium-up--push-one-twelfth"> | |
<div class="section-header text-center"> | |
<h1>{{ page.title }}</h1> | |
</div> | |
{% if page.content.size > 0 %} | |
<div class="rte"> | |
{{ page.content }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% assign current_product_handle = product.handle %} | |
{% assign upsell_product_col = 'col-xs-4' %} | |
{% assign sum = product.price %} | |
{% assign number_of_upsell_products = 0 %} | |
{% for upsell_product in upsell_collection.products limit: 4 %} | |
{% unless upsell_product.handle == current_product_handle %} | |
{% assign sum = sum | plus: upsell_product.price %} | |
{% endunless %} | |
{% assign number_of_upsell_products = forloop.index %} | |
{% endfor %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="collection__main"> | |
<!-- COLLECTION SIDEBAR --> | |
{%- capture categories -%} | |
{%- for tag in collections[collection.handle].tags -%} | |
{%- if tag contains 'categories' -%} | |
{%- assign tag_patterns = tag | split: '_' -%} | |
<li class="collection-sidebar__filter-item main-filter" data-tag="{{ tag | handle }}">{{ tag_patterns[1] }}</li> | |
{%- endif -%} | |
{%- endfor -%} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const noise = (canvas) => { | |
const ctx = canvas.getContext('2d'); | |
const noiseData = []; | |
let wWidth; | |
let wHeight; | |
let loopTimeout; | |
let resizeThrottle; | |
let frame = 0; |