Book a Free Call

Wordpress

WordPress Super-admin hack

Came across an interesting hack yesterday, which was a new one on me. I noticed a site I had been working on had been hacked into and some redirect crap added to it.There was some folders full of redirect junk sitting in the WP root and some nasty little redirect rules pertaining to them in […]

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

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

Make things same height | Javascript | JQuery

It’s not your fault, but it is your problem – how to match element heights with jQuery

Read More

Rewrite domain to subdirectory without anyone knowing (WordPress / .htaccess)

Well this one is a bit of a doozy. Anytime there are any htaccess rules to implement, it always seems that there are 1000+ possible ways to do the same thing, and many don’t work. Well I have an issue today. I have placed a WordPress install into a subdirectory, and I need the domain […]

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 video height css

Create varying video heights with SCSS based on the number of posts (wp_query)

I needed to calculate the height of a video tag based on how many were on screen, inside a wp_query loop. Here’s what I did: Then inside the loop, where there might be a video to be displayed, I added a class with the countage variable stuck to the end of it the class ‘hasvideo_<?php […]

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

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

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
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
Is it urgent? Donate to Cork Simon

Got an urgent issue?

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

(085) 7686677