BLOG
hints, tips, tricks and newsExtracting Thumbnails from Videos
February 18th, 2020Recently, I’ve had a couple of projects that require thumbnails for video posts. There are plugins out there to do this, but I wanted a simple, lightweight way. Good news is, this can be achieved very easily by making use of WordPress’s WP_Embed class. /** * Maybe get thumbnail from embed * * @param string […]
Inlining CSS – the Good, the Bad and the Ugly
November 26th, 2019I’m a sucker for performance gains to the point that I’m convinced I’m actually losing time overthinking it – 🤔 A good example is CSS delivery and it’s always interesting to get others’ opinions on how important they consider styling performance to be and how they measure it. Inlining – good/bad/ugly? Good I see genuine […]
If a marketing website were a salesperson
November 26th, 2019Would you carry on employing a salesperson that was slow, ineffective and unkempt? If a website were a salesperson They would: be accountable for their sales performance care about their appearance try to help if you asked them for something they didn’t know call in sick if they were absent suggest alternative solutions to try […]
Convert br tags to span tags
July 6th, 2019Have you ever needed to convert the string immediately before br tags and wrap it in span tags instead? Me too. There is very likely a regex solution but here’s a very simple way to achieve it using string and array functions. /** * Replace linebreaks with span tags * * Wraps each string immediately before a […]
How to Remove Meta Boxes from Specific Pages
July 2nd, 2019Sometimes you only want WordPress meta boxes, such as the permalink, on specific pages. To do so you can remove meta boxes from certain pages.
Cross-browser support for hiding scrollbars, including FireFox
May 13th, 2019Cross-browser support for scrollbar styling and visibility is a challenge. It’s as simple as that. This article provides a solution that addresses the issue of hiding the scrollbars, using scrollbar-width, ::-webkit-scrollbar and -ms-overflow-style. What are Scrollbars? Scrollbars are bars that appear down the right-hand side and across the bottom of the browser (or an element […]
Website Performance Gets Little Wins Using ‘noopener’
May 2nd, 2019Your website performance is critical for great user experience and can certainly help with SEO, too. One little know performance drain
Don’t tell people your Google position
February 22nd, 2019Google search engine’s not bad at delivering pretty darn relevant results. For this reason I strongly suggest you do NOT tell others what they’ll get when they carry out a Google search. Let me give a bit of context to this with a simple back story. A speaker informing the audience of their Google position …it’s position […]
Compress directories from the command line, excluding node_modules and development files
February 13th, 2019This simple article provides a CLI command to compress a directory whilst excluding specific sub-directories and files. We do a lot of custom development using modern development tools. From time-to-time we need to compress certain directories for deployment to production. In such cases, it is very common that some files and sub-directories need to be […]
Mobile search rankings could be damaged by content blocking
January 19th, 2019Great news – blocking content will probably have a negative impact on the page’s search ranking. We all hate content blockers, like those pesky popups that require a sign up before accessing the rest of the page’s content. And it appears that Google is on the readers’ side. In an update from Google they stated: Starting today, pages where content […]