Redirect all pages to a ‘Coming Soon’ Page in WordPress

You can redirect all your WordPress pages to a designated Coming Soon page for all non-logged in users with the template_redirect action hook whilst leaving all pages visible to logged in users.add_action( ‘template_redirect’, ‘themeprefix_coming_soon’ ); function themeprefix_coming_soon() { if( !is_user_logged_in()…
Adding Expires Header to htaccess

Expires Headers are a set of rules or directives from a website to tell a user’s local browser to either look in its own cache for files or to request the files off the webserver, the former is better for…
Block xmlrpc.php requests from Cloudflares firewall apart from JetPack

You can block WordPress xmlrpc.php requests from Cloudflare but exclude the JetPack IP addresses by creating a custom firewall rule, attacks on xmlrpc.php are frequent and it is best now disabled as it will be deprecated from WordPress in the…
Change WooCommerce Sold Out text

You can change WooCommerce ‘Sold Out’ text set by the inventory setting of Sold Out with the WooCommerce filter woocommerce_get_availability_text Add the below snippet with your custom sold text to functions.php add_filter(‘woocommerce_get_availability_text’, ‘themeprefix_change_soldout’, 10, 2 ); /** * Change Sold…
Using WooCommerce with Varnish, exclude pages and cookies

To use WooCommerce with Varnish server-side caching you need to exclude some of the generic WooCommerce pages and cookies. Some web hosts will partially do this for you and others will give you an interface to add them yourself, make…
Redirect all pages to non-www and HTTPS in WordPress

To redirect all URLs from www to non-www and also to redirect from http to https, this code snippet to be added to .htaccess file at the top should do the trick. So https://example.com # BEGIN Redirects RewriteEngine On #…
Minimum System Requirements for macOS Catalina 10.15 – Is yours good enough?

Find out if your Apple computer meets the minimum system requirements of the new macOS Catalina 10.15. Apple have released their operating system named macOS Catalina October 2019, which will be macOS 10.15. The name Catalina continues on with their…
Create An ACF Repeater Bootstrap Accordion in WordPress

Create An ACF Repeater Bootstrap Accordion for use in WordPress. Accordions can be a handy way of managing larger amounts of data to display only certain bits at a time this guide shows how to use a Boostrap accordion with…
Create A Bootstrap 4 Carousel Slider With ACF Image Repeater

Here is how to create a Bootstrap 4 carousel slider of images with ACF Pro Repeater field in WordPress. There are a few options in that the Bootstrap carousel can be plain, add navigation and add a caption, 4 examples…
Create a Loop of Bootstrap 4 Tabs in WordPress with ACF Repeater

This tutorial looks to Create a while loop of Bootstrap 4 Tabs with an ACF Repeater field in WordPress. You need to already have Bootstrap 4 enabled in your theme and ACF Pro plugin installed. Create the ACF Repeater fields…