BLOGhints, tips, tricks and news
Pages that load under one second get more visitors. With every passing second waiting visitors lose interest and leave before ever seeing your content.
Many plugins (and themes) inject HTML comments into the page’s source code that aren’t really needed in your a live site. Here’s how to remove them.
Recently, 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 […]
I’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 […]
Would 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 […]
Have you ever needed to convert the string immediately before br tags, wrapping it in span tags? Me too, oddly. I’m sure there’s a regex way to do this but at the time of writing my brain wasn’t willing to entertain the idea, so here’s a very simple way to achieve it using simple string and array […]
Sometimes 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 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 […]
Your website performance is critical for great user experience and can certainly help with SEO, too. One little know performance drain
Google 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 […]