This post today is not an in-depth look into using Advanced Custom Fields, or Custom Post Types, or CPT-UI. I just wanted to briefly explain the problem and then show the solution that has worked for me. The problem After setting up a new Custom Post Type (CPT) in...
Gabriola Graphics Blog
PHP Snippet: Display If In Date Range
One of my client’s websites requires regular updates where a “Sale” graphic is shown to visitors between certain dates. Rather than manually updating the site at those specific dates (and having to be in front of the computer on those dates) I wrote...
Sending Mail Using The PHP Mail Function: A Simple Test To See If Your Server Supports The Function
You should not be using the PHP mail function within your site as mail being sent from the server can be faulty at reaching the intended email address. In fact I’ve recently found out that there are many web hosts that in fact disable this function entirely (on...
Some Handy CSS: Clearfix, Friendly Spacing on Named Anchor Jumps, Visually Hidden and Box Sizing
These aren’t going to be terribly useful to you unless you’re a developer. A few regularly used CSS tricks: The latest clearfix method (note this is for the parent container, not the child element) .yourcontainer:after { content: ""; display:...
Lazy Load Your Images To Significantly Speed Up Page Load Times
I’d seen the effect on other pages while surfing the web for some time now. Where you are scrolling down and the images load into view as the page is scrolling down. I immediately knew when seeing the effect in action just how beneficial this is. For one thing...
Invisible Elements Correctly in CSS
.element-invisible { position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px 1px 1px 1px); /* IE6, IE7 */ clip: rect(1px, 1px, 1px, 1px); } Full credit to Jonathan Snook. His article and reasoning here:...
This section only shows on mobile. The sidebar above disappears on mobile.


