- Go to your Shopify
admin/settings/filespage - Open your browser Dev tools, go to the console
Then, depending on the option you choose:
- Make sure your browser is set to download files automatically and doesn't ask for the download location every time
| <?php | |
| /* | |
| * Plugin name: Disable Customizer | |
| * Description: Completely turn off customizer on your site. | |
| * | |
| * Plugin URI: https://gist.github.com/doiftrue/6d8f975ed8af5ac325b6d9a1c52abf1c | |
| * Author URI: https://wp-kama.com | |
| * Author: Timur Kamaev | |
| * Note: This is a fork of https://wordpress.org/plugins/customizer-disabler/ (v2.2.7) | |
| * Source Author: Johannes Siipola |
| <?php | |
| /** | |
| * Plugin Name: Disable Comments (Must Use version) | |
| * Description: Disables all WordPress comment functionality on the entire network. | |
| * Version: 1.1.2 (changed) | |
| * Plugin Changed URI: https://gist.github.com/doiftrue/ab931c1d866cb113b4ff318a5faeb3b3 | |
| * Plugin URI: https://github.com/WPDevelopers/disable-comments-mu | |
| * GitHub Plugin URI: https://github.com/WPDevelopers/disable-comments-mu | |
| * Author: WPDeveloper | |
| * Author URI: https://wpdeveloper.com |
| // This JS file is loaded by the theme: | |
| (function() { | |
| // The button with the CSS class "get-support" loads the form. | |
| jQuery('.get-support').on('click', load_support_form); | |
| // The form is displayed in a div tag with the CSS class "support-form". | |
| function load_support_form() { | |
| jQuery.get('/wp-admin/admin-ajax.php?action=my_get_support') | |
| .then(function(response) { |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Vanilla Fitvids.js</title> | |
| <style type="text/css"> | |
| body { | |
| margin: 0 auto; | |
| max-width: 40em; | |
| width: 88%; |
| <?php | |
| /* | |
| * ----------------------------------------------------------------------------- | |
| * Advanced Custom Fields Modifications | |
| * ----------------------------------------------------------------------------- | |
| */ | |
| function PREFIX_apply_acf_modifications() { | |
| ?> | |
| <style> |
admin/settings/files pageThen, depending on the option you choose:
| // Handles all the things ajax cart related, | |
| // based around the timber ajax cart, minus the jquery | |
| import serialize from 'form-serialize' | |
| import fetch from 'unfetch' | |
| const RicherAPI = {} | |
| // tacos | |
| RicherAPI.onCartUpdate = (cart) => { | |
| console.log('items in the cart?', cart.item_count) |
| /** | |
| * Vanilla scrollTo implementation (smoothly scroll/"jump" to an element) | |
| * @author github.com/andreasvirkus | |
| * | |
| * Default easing is: | |
| * Robert Penner's easeInOutQuad - http://robertpenner.com/easing/ | |
| * | |
| * @param {String} target selector to scroll to | |
| * @param {Object} options Optionally defined duration, offset, callback and easing | |
| * |
| var $addressInput = $('#locationAddressInput'); | |
| var setKeyDownListener = selectFirstOptionOnEnter($addressInput[0]); | |
| window.autocomplete = new google.maps.places.Autocomplete($addressInput[0], { | |
| type: ['geocode'], | |
| componentRestrictions: {country: 'be'} | |
| }); | |
| google.maps.event.addListener(window.autocomplete, 'place_changed', function () { | |
| var address = window.autocomplete.getPlace(); |
Contents: