Book a Free Call

Uncategorized

Adding script tag embed to Gatsby component

This one broke my heart for a could of hours, which annoyed me as it really shouldn’t have. I like working with Gatsby but the clashing versions and updates really drags the progress down. This project I hadn’t opened in a few months and it basically started crying when I ran it due to the […]

Read More

Get more than 100 queries in GraphQL (I felt stupid)

Hi pals. I’m not a seasoned GraphQL fella yet, so this one surprised me. Using GraphCMS, I was happily adding more content to my main datatype (‘artists’) when I noticed it wasn’t updating. After deciding it wasn’t caching etc, or anything at the GraphCMS end, I googled a little and found that GraphQL by default […]

Read More

Animate on Scroll (AOS) into Nuxt js

Hello pals. Well here’s another sticky one that caught me for a while, and after trawling the blogs I got her going. Firstly, install AOS. This didn’t work for me with Yarn but worked fine with NPM. Then, create a plugin file in your plugins. Crucially, add .client to the name…aos.client.js Inside that plugin file, […]

Read More

Add content or ACF field under thumbnail/image gallery in Woocommerce

Today I am adding some content right underneath the gallery in Woocommerce single product. If you’ve worked with Woocommerce before, you’ll know that the single product is layed out using float. Actually a lot of woocommerce is. I can’t tell if I love or hate this! On one hand, using float is agnostic in terms […]

Read More

Nuxt view localhost on device over WiFi (IP)

Say you are running your Nuxt site as normal on localhost:3000, and you want to run it off a tablet or phone or something over the same network

Read More

AIO WP Migration: Import stuck on “done preparing blogs” or “done preparing plugins”

The awesome AIO WP Migration is a fantastic tool for backing up and moving WP sites. It doesn’t come cheap for Multisites, but if it’s a single site, it’s hard to find a plugin that does a better job. Do yourself a favour and buy the unlimited extension, and literally give yourself back hours and […]

Read More
Double Marvellous Nuxt Storyblok

Generate static Storyblok site with dynamic pages (Nuxt.js)

When generating a site that takes content from Storyblok in Nuxt, I noticed initially that the pages weren’t being built out.

Read More

Sass-loader headache in Nuxt

A fix for “TypeError: this.getOptions is not a function”

Read More
Double Marvellous Web Development

Get language of post from WPML | Only show certain language

Do you need to use the WPML plugin? Well if you do and you need to restrict something to the current language, here’s how: First, get the current language Echoing this will give me en on my English language page Next, whilst in a loop of posts, get the language of each post: Here, in […]

Read More

WP | Gravity Forms | Change error message text

For a popular plugin I was surprised by how inconvenient this was to do. But hey, I guess they have their reasons.

Read More
Double Marvellous page speed

Getting fast core web vitals with WordPress

In 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 More
Double Marvellous Nuxt

Nuxt vs Gatsby initial thoughts

I have learned a lot from the Gatsby/GraphCMS experience so I wasn’t completely cold going in, but I must say, it seems a lot more tolerant of me and my code. But perhaps this is a Vue thing eh? It always felt easier to get along with.

Read More
Double Marvellous web design cork

Check if WP page has parent and link back to it (breadcrumb)

Here’s a quick home-made breadcrumb for WordPress in case you aren’t using the built-in Yoast one or whatever. Add this to your template:

Read More
Double Marvellous autohotkey

Quickly get to folders in CMD

When jumping around different folders in the CMD line, I’ve found using AutoHotKey really handy. Below are three scripts that I use to quickly jump from WAMP to Flywheel and back without typing out paths like a big fool. Also at F8 I have put a command to kill the nginx server. Try it out, […]

Read More
Double Marvellous woocommerce

Woocommerce shop item title class & html

This is a quick one but useful… Say you want to change the default H3 title to a P class and add a few classes. Simply plug this into your functions file and you can switch these things around without worrying about future updates or templates etc.

Read More
Equal heights of elements with Vanilla js in Shopify

Equal heights of elements with Vanilla js in Shopify

This 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 More
Double Marvellous nodjs

Real Quick Gulp SCSS to CSS setup for small project

Ever wanted to just quickly squish SCSS into your small project? It’s node so there is a bit of faffing and cramming modules everywhere, but here’s a quick, small setup Initiate a Node project & install Gulp and Gulp CLI. Install the gulp-sass plugin and the del module Project structure will be: index.html (link to […]

Read More
Double Marvellous Functions Timestamp XCode debugging

Timestamp on your CSS and JS in Functions file in WordPress

I’ve been trying to debug on XCode and the caching is very persistent….here’s a quick function to add to your functions file to timestamp your js or css files, so you don’t have to go crazy trying to refresh the cache when you’re working locally.

Read More
Double Marvellous Cork iPhone

MP4 Video embed that actually works on iPhone

If you’re inclined to design or get designs with mp4s embedded in them, you’ll know that iPhone starts crying a lot of the time with them. Well after much mooching around the place and trying to get this under control I think I finally have a good working system. It’s seemingly down to the ‘playsinline’ […]

Read More

Collection dropdown filter for Shopify

Heyo, 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 More
Double Marvellous Bolt CMS

Bolt CMS migrate whole site

Hey, so I am using Bolt again to build a website – there are lots of reasons why you might do this, and here are a few of mine right now – Oh man, do I want a change from building WordPress themes all the time. See reason 1 No database – it’s just flat […]

Read More
Double Marvellous close acf fields wordpress

Close all ACF field panels

ACF fields – one of the handiest WordPress plugins of all? Well I use it a lot, and th einternal WP pages can get a bit crazy-looking after a while. To shut everything up by default, use this (add to your functions file):

Read More
Double Marvellous htaccess

.htaccess: redirect www, force https and remove .php

Force www and remove .php from url

Read More

Coronavirus / Covid-19 WordPress alert plugin

Hear me now, Lockdown Legion. Okay, so a lot of clients are asking for some sort of notification on their sites about the Coronavirus. Many (most) business owners are running WordPress sites so I have built a plugin to do this for them. I will be tarting it up slightly and sending to the WP […]

Read More

Embed Youtube vids – quick setup

Okay real quick – this is a whittled down bit of started code from the Youtube docs. But I do find myself searching around for a while to find it every time I need to remember where to start with the Youtube api. Anyway, all I wanted was an embedded video player that I can […]

Read More

Contact Form 7 – The specified value does not conform to the required format, “yyyy-MM-dd

If you have something like this shortcode for a date input on contact form 7: Try adding in a date-formatted placeholder and you should clear the error.

Read More

Get Google reviews & display in HTML

So I noticed a lot of people looking for something that just outputs the Google reviews onto your site from your Google account. Should be simple right? Well you would think it would be a little simpler than this but hey. It’s not too bad. You need a few things…. Get the google maps API. […]

Read More

Remove Flamingo Spam messages Contact Form 7 WordPress (using SQL)

Remove Flamingo Spam messages Contact Form 7 WordPress (using SQL)Okay so this one is something I can see a lot of people are looking for. So Flamingo is great, it stores your contact form 7 messages and is a great tool if your client seems to be telling you the forms aren’t working, even though […]

Read More
VueJs Double Marvellous

VueJS Simple Quickstart

So 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 More

How do I fade things in on scroll JQuery

Okay, 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 More

How do I put Facebook on my website?

So you want to put Facebook onto a page on your website. No prob! You just need to do three things. 1) Go to the Facebook Plugin page: here 2) Enter your facebook page url into the field marked ‘Facebook Page URL’. Change any other details if you wish. 3) Click ‘Get Code’ and you’ll […]

Read More
send email form Cork web design

How can I send emails from my website?

Recently I was under pressure to splam a contact form solution into a one-page website at the last minute. Ordinarily if I am building something with html in PHP, I would use this Frankenstein version of Jem’s Mail Form which I have used happily for years. It does the trick without issue, and once you […]

Read More
Double Marvellous web design cork

JQuery id starts with selector

This 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
Double Marvellous web design cork

Make element square with Jquery

“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
Double Marvellous Barry English Cork developer

New Website

I thought I’d rebuild my site and take WordPress out of the frame. Why? Well I wanted to see how much faster I could make things, and to see if I couldnt learn a few things while I was at it. Also, there are lots of reasons why one might want to do this, but […]

Read More
Double Marvellous Cork Web designer

How do you get royalty free music?

Okay so you need some royalty free music that isn’t that insufferable ukelele and whistling thing that all the banks and insurance brokers use. Youtube has always been my go-to for royalty-free music, because not only do you have plenty of good-quality uploads there, you find all sorts of uploaded content you could freely use, […]

Read More
Is it urgent? Donate to Cork Simon

Got an urgent issue?

Charlie's Cottage, Carrigrohane, Co. Cork, T12 WY9H

(085) 7686677