Nuxt Ecommerce (Snipcart/Stripe)
All you need to set up a product with custom fields with Snipcart and Nuxtjs
Read MoreAll you need to set up a product with custom fields with Snipcart and Nuxtjs
Read MoreIn the course of my daily rounds I was interested to see how svelte I could make the core web vitals on my own site. What are core web vitals? These are three tests for a webpage: how quickly page content loads, how quickly a browser loading a webpage can respond to a user’s input, […]
Read MoreWhen you’re in development, everything is great. But after running gatsby build, your js plugins and fonts are all broken or missing So to fix this, first run Then, go to your gatsby-config.js file, and add the location of a server where you will be accessing the site. You can edit it later, but for […]
Read MoreIt’s not your fault, but it is your problem – how to match element heights with jQuery
Read MoreThis function (original fromĀ CSS-tricks) helps to equalise the heights of anything, especially useful in a loop. So in Shopify (or anywhere really) I might have titles that sometimes are pretty long, and on a mobile, they are wrapping and causing heights to be uneven. Here, we add a class to the html (in this case […]
Read MoreHeyo, I found this wasn’t too easy to find any help on so I just built my own function and thought I would put it up here. I needed a filter for the collections in Shopify. Here’s the filter dropdown from the collection-filters.liquid file:
Read MoreSo I’m building a stupid webpage that looks like a trashy magazine. The idea is you can change the headlines and images and get an image of it. But rather than vanilla JS which I was all about last week, I have grown bored of typing document.getElementById and now I want to cut corners again. […]
Read MoreOkay, first off, everyone has wanted this effect forever. So it’s worth learning it! I have done this the hard way plenty of times and it’s one thing or effect that I don’t mind using a plugin for. Why? Well it’s just done well, it’s fast and I can just get on with building once […]
Read MoreThis is a handy way to target any element with a common string in the id. an element with id=”yourstring-whatever” would be targeted this way. It does seem a little intensive on the DOM so maybe whittle down the elements to target it inside a container, thereby letting the browser know that it doesn’t have […]
Read More“Hell-o”. Here’s a simple and useful Jquery each function that takes the width of something and makes it’s height out of it. It also re-runs when the browser window is resized. I use it alot, it’s dead handy. You’re basically getting the width and making the height out of it. See js snippet below. Give […]
Read More