Live Cart for WooCommerce

Speed Up WooCommerce Shopping Cart for WordPress with Live Cart from WP Engine

Speed up your WordPress WooCommerce shopping cart using Live Cart from WP Engine. Live Cart makes real-time updates to the cart for each visitor without dragging down performance. By leveraging the cache to keep cart data accurate, it eliminates extra calls on pages not using the cart, giving you the best of both worlds. Live Cart eliminates the lag caused …

security lock

How to Password Protect a Website, File, or Directory Using HTPASSWD

Do you want to password protect your entire website, a file, directory, or path on your website? Maybe you want to setup authentication to share content with a client or other authorized user. Or maybe you’re working on a website project that’s not ready to be seen publicly, yet. Regardless, I’ve got a super-duper solution that could be right up …

website favicons on mobile phone

Adding a Custom Favicon to Your Website the Easy Way

Favicons. You might not be familiar with the word, but you’ve definitely seen them. Favicons are those little graphic icons displaying next to a website’s title at the top of your browser in the tabs. If you have a website you can add a custom favicon to it. Favicons help websites stand out, show up, and reflect your brand amongst …

anchored boats

How to Create a Custom WordPress Block the Simple Way That Works 2022

Creating a WordPress block — which you might currently or formerly have referred to as a “Gutenberg Block” — is something I struggled with for a while. I found it difficult to locate a tutorial or how-to-guide that was both comprehensive, started from the very beginning, didn’t get side-tracked with technical-babble, crossed the finish-line, and actually worked in the end. …

Image Gallery

How to Remove Srcset from wp_get_attachment_image() in WordPress

Learn how to remove srcset from wp_get_attachment_image() for WordPress, so you can display consistently sized attachment images every time. wp_get-attachment_image() is WordPress’s built-in function to create an <img /> tag, so you can display a media file on your website. By default, it includes a srcset attribute. A srcset is a set of image sources (i.e. “src set”) used for …

Dynamically Include Page Specific Sidebars in WordPress Page Templates

Dynamically Include Sidebars in WordPress Page Templates for Specific Pages

Obligatory throat clearing… I want to include dynamic sidebars in WordPress page templates. Context When creating a “Page” in WordPress you have the option to assign a page template. Page templates allow you to apply a custom layout to a page. That’s to say, as long as the active theme on your website offers page templates you can apply a …

Norther Lights and Snow

How to Add Async and Defer Attributes to WordPress Enqueued Scripts

Out of the box, WordPress does not include a async or defer attributes on javascript files loaded using wp_enqueue_script(). That’s okay, but some scripts you need them. Learn how to add async and defer attributes to WordPress enqueued script tags via functions.php Code Sample Here’s the code — paste it into your WP theme’s functions.php file and modify it appropriately, …

How to Add Placeholder Text to Contact Form 7 Fields in WordPress

Contact Form 7 is one of my favorite free WordPress form plugins. It’s easy to install the plugin on your WP site, create a simple form, and get it working right away. CF7 also makes it easy to extend forms, as well as structure the markup and style forms any which way you’d like. Even though basic form manipulation is …

I design and develop experiences that make people's live simple

How to Conditionally Display WordPress Post Categories on Screen

Not always, but sometimes when you’re using WordPress for blogging, publishing articles, or other types of content-driven purposes it’s nice to render a post’s category — or categories — on the screen. Inherently, displaying a post’s category is good for visual organization purposes, SEO, and helping your website visitors know there might be more similar articles to interest them. It’s …