Image of automatically-use-fallback-thumbnail-size-for-youtube-maxresdefault-image-on-html-img-tag-with-javascript.jpg

Automatically Use Fallback Thumbnail Size for YouTube maxresdefault Image on HTML img Tag with JavaScript

Sometimes when working on web projects, there may be cases where we want to display a YouTube video’s thumbnail on our webpage. YouTube provides specific url endpoints that can be used to grab a video’s thumbnail. When researching the topic, most will try to use the largest thumbnail size that is provided for a video, […]

Featured Image for Adding Support for Elementor to Custom Post Types Programmatically

Adding Support for Elementor to Custom Post Types Programmatically

Elementor is a popular WordPress page builder plugin that allows you to create beautiful websites easily. As a developer, you may create custom post types for various reasons on a website. By default, Elementor will not be usable for custom post types. Documentation for Elementor is clear on how to add support and use Elementor […]

Featured Image for Restoring Anchor Links in Nested Tabs Widget

Restoring Hash Links / Anchor links and Linking to Specific Tabs in Elementor’s new Nested Tabs Widget

The popular WordPress page builder plugin Elementor recently released a new widget called Nested Tabs. The Nested Tabs widget allows for far greater customization and flexibility with the content. It Replaces the old Tabs widget if you have containers enabled. The old Tabs widget supports anchor links (links that end with #anchor-link-here), allowing you to […]

Featured Image Banner for Setting CSS Custom Properties (Variables) using the Wordpress Customizer

Setting CSS Custom Properties (Variables) using the WordPress Customizer

Recently I worked on a WordPress project that was undergoing a site refresh, and had frequent color changes. To save the hassle of having to go in and update colors for everything and also give the client control over the colors, I decided that the best course of action would be to make the colors […]

Using YouTube Embeds as a Video Background

Using YouTube Embeds as a Video Background Without Showing The Video Controls

In recent times, video backgrounds in websites have been more and more common. They are commonly used as hero section backgrounds, or backgrounds for other sections. The use of graphics and visuals in motion provide nice eye-candy for your users and can also be used to supplement your branding or product. When using video for […]

Main thumbnail for Using the WordPress Interactivity API without using Blocks and Gutenberg

Using the WordPress Interactivity API without using Blocks and Gutenberg

In the WordPress 6.5 Update, WordPress introduced the Interactivity API. The Interactivity API allows “developers to create rich, interactive user experiences”. The main purpose for the Interactivity API is to provide a standard way for developers to develop interactive experiences when developing Gutenberg Blocks. I like the idea of a standard, “WordPress way” of developing […]

Featured Image for update-and-upgrade-torch-and-xformers-on-windows-11-for-automatic1111s-stable-diffusion-webui-2024

Update and Upgrade torch and xformers on Windows 11 for AUTOMATIC1111’s Stable Diffusion WebUI (2024)

Upgrade torch and xformers on Windows 11 for Stable Diffusion WebUI to improve generation speeds.

Sorty Terms by Latest Post Date Image

Sorting Category and Taxonomy Terms by Latest Post in WordPress

Recently I needed to implement a way to return custom taxonomy terms sorted by their latest posts. For example, imagine we have a movie review site, and we use the default category taxonomy as “Movie Categories”. Maybe they will have the following taxonomy terms: Getting taxonomy terms with get_terms() We can easily get the category […]

How to Autoplay Youtube Video Embeds

How to Autoplay Youtube Video Embeds (2024)

Often times we want to embed a Youtube video on our websites. These days this is very easy thanks to the embed option Youtube provides.

Analytics image for UA/GA4

Recreating, Finding Google Universal Analytics (UA) reports in Google Analytics 4 (GA4): Audience

With Google Universal Analytics (UA) being sunset very soon, everyone will be forced to use Google Analytics 4 (GA4). A lot of the default reports should feel familiar, however a lot of other reports that were available by default in UA are missing. For some, this may be a source of frustration and major deal […]