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
<?php | |
function disable_embeds_code_init() { | |
// Remove the REST API endpoint. | |
remove_action( 'rest_api_init', 'wp_oembed_register_route' ); | |
// Turn off oEmbed auto discovery. | |
add_filter( 'embed_oembed_discover', '__return_false' ); | |
// Don't filter oEmbed results. |
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
<!--SINGLE PRODUCT--> | |
<section data-section-id="{{ section.id }}" data-section-type="product" class="p-single-product"> | |
<!--product header--> | |
<header role="banner" class="p-single-product__header"> | |
<h1 class="p-single-product__title u-a4 u-fw-400 js-animation-element u-visually-hidden"> | |
{{ product.title }} | |
</h1> |
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
<form method="POST" name="contactform" action="contact-form-handler.php"> | |
<div class="row-full-width"> | |
<div class="span-6 padding-all"> | |
<fieldset> | |
<label for="NameInput">Your Name:</label> | |
<input type="text" placeholder="Name..." id="NameInput" name="name"> | |
</fieldset> | |
</div> | |
<div class="span-6 padding-all"> | |
<fieldset> |
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="o-pagination-wrapper js-pagination-wrapper" data-page="<?= $page ?>"> | |
<?php | |
get_partial('common/partials/pagination-list', [ | |
'current' => $page, | |
'max' => $max_pages | |
]); | |
?> | |
</div> |
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 {formatMoney} from '@shopify/theme-currency/currency'; | |
import 'whatwg-fetch'; | |
import serialize from 'form-serialize'; | |
class GoCart { | |
constructor(options) { | |
const defaults = { | |
cartModalFail: '.js-go-cart-modal-fail', |
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
/** | |
* 1. Correct the line height in all browsers. | |
* 2. Prevent adjustments of font size after orientation changes in iOS. | |
* 3. Tells the browser to account for any border and padding in the values you specify for an element's width and height | |
*/ | |
html { | |
line-height: 1.15; /* 1 */ | |
-webkit-text-size-adjust: 100%; /* 2 */ | |
box-sizing: border-box; /* 3 */ | |
} |
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 autoprefixer from "gulp-autoprefixer"; | |
import babelify from "babelify"; | |
import browserify from "browserify"; | |
import browserSync from "browser-sync"; | |
import buffer from "vinyl-buffer"; | |
import cleanCSS from "gulp-clean-css"; | |
import del from "del"; | |
import gulp from "gulp"; | |
import rename from "gulp-rename"; | |
import sass from "gulp-sass"; |
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 autoprefixer from "gulp-autoprefixer"; | |
import babelify from "babelify"; | |
import browserify from "browserify"; | |
import browserSync from "browser-sync"; | |
import buffer from "vinyl-buffer"; | |
import cleanCSS from "gulp-clean-css"; | |
import del from "del"; | |
import gulp from "gulp"; | |
import rename from "gulp-rename"; | |
import sass from "gulp-sass"; |
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 autoprefixer from "gulp-autoprefixer"; | |
import babel from "gulp-babel"; | |
import babelify from "babelify"; | |
import browserify from "browserify"; | |
import browserSync from "browser-sync"; | |
import buffer from "vinyl-buffer"; | |
import cleanCSS from "gulp-clean-css"; | |
import concat from "gulp-concat"; | |
import del from "del"; | |
import gulp from "gulp"; |