This file contains 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 %} | |
Here the article content is split by iframe and img tags, responsive Bootstrap | |
classes are added in, and then output to the page. | |
The Split filter removes the delimiter from the string. This functionality is | |
exploited to join the array elements back together with new HTML tags added | |
in. | |
Blog post: http://nateeckerson.com/2019/10/09/wrap-shopify-blog-article-images-with-css-classes-in-liquid.html | |
{% endcomment %} |
This file contains 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
// In the root directory of the theme, install your plugin: | |
// | |
// > yarn add jquery-zoom | |
// | |
// Add the line below to the top of scripts/layout/theme.js | |
import $ from 'jquery'; | |
// Below your imports, set up jQuery so that it can be accessed | |
// from the HTML |