Elementor 3.18 Breaks Plugins Sending JSON Ajax Responses

If you find certain areas of your site not working after updating to Elementor 3.18, take this step to fix them.

Continue reading “Elementor 3.18 Breaks Plugins Sending JSON Ajax Responses” ››

Clear W3 Total Cache by URL From the Admin Bar or Dashboard

When recently working on a WordPress website that generated pages from an API that aren’t stored in the main site database, I discovered that the W3 Total Cache admin bar link to clear the current page’s cache didn’t work.

The ‘Purge Current Page’ link in the Performance menu item works by passing the current post ID to a function that clears the cache by an ID. Since this only works for single posts, it also doesn’t work on post archives and term listing pages.

So I wrote a small plugin to clear the current page’s cache by its URL.

Continue reading “Clear W3 Total Cache by URL From the Admin Bar or Dashboard” ››

Automatically Add Unique CSS Classes to Contact Form 7 Forms

When using certain CRMs and marketing automation tools, Contact Form 7 submissions can all look like they came from the same form.

This is especially noticeable in HubSpot which uses the class on the form tag to identify each form. Unless you specifically add a class to the shortcode then it will look like any submission came from a form named “.wpcf7-form, .init”

So I wrote a small plugin to automatically add the title slug as a form class for any forms that haven’t had one added manually.

Continue reading “Automatically Add Unique CSS Classes to Contact Form 7 Forms” ››

Forcing W3 Total Cache to Clear Parent Term Listing Pages on Post Save

In the page caching settings of W3 Total Cache there is an option to flush the ‘Post Terms Pages’ when saving or updating a post. This clears the listing pages for any terms that the post has been added to, but it doesn’t clear the listing pages of any parent terms that aren’t checked, even though the post can still show on those pages.

The following code uses WordPress filters to detect a change in a post and then invalidate the cache of any parent term listing pages whether they have been checked or not.

Continue reading “Forcing W3 Total Cache to Clear Parent Term Listing Pages on Post Save” ››

Fixing Yoast Broken Organization and Logo Schema

Get your Logo and Organization schema back after a Yoast update.

Continue reading "Fixing Yoast Broken Organization and Logo Schema" ››

Mapping a Synology NAS Drive in Windows 11

How to map a Synology NAS with Windows 11 that you previously had connected with Windows 10

Continue reading "Mapping a Synology NAS Drive in Windows 11" ››

Prevent PDF Caching With Invoice Ninja 5 (Apache, .htaccess)

If you find that PDF files aren’t updating after changes, it could be that they are cached by the browser or a CDN such as Cloudflare.

Continue reading “Prevent PDF Caching With Invoice Ninja 5 (Apache, .htaccess)” ››

Customising the Client Portal Colour In Invoiceninja 5

Customizing the invoiceninja V5 client portal colour scheme.

Continue reading "Customising the Client Portal Colour In Invoiceninja 5" ››

Extend Yoast Schema with a New Type

Yoast 11 introduced schema data added by default. If your site already has schema added through your theme then this may break. At the time of writing, the documentation only shows how to extend an existing type (Person), not add a new one. So here I am going to show how to add event data by adding a new piece to the tree.

Continue reading “Extend Yoast Schema with a New Type” ››

Remove Yoast HTML Comments in Version 11.0

If you were previously stripping Yoast HTML comments on your website then there is a good chance that updating to v11.0 will show the new schema data at the top of your website.

The problem is that a widely used snippet for stripping out the comments searched for the string ‘yoast’ and then removed the surrounding comment tags. The new schema data added in V11.0 uses the word ‘yoast’ as a class on the script tag, so the script tags get stripped and the schema data shows at the top of the website.

Continue reading “Remove Yoast HTML Comments in Version 11.0” ››