Make one Swiper slider control another

Not WordPress specific this one, but I love Swiper and occasionally you may wish to use 2x Swiper sliders together and have them controlled in a way that one controls the other.   This could be handy if you’re making a timeline and want some dates to control a carousel, or if you want a slider … Continued

Create your own button via a shortcode

Here’s a quick little snippet for adding your own shortcode which generates a button in any post or page from a single shortcode. Within the shortcode, there are 2 options to add a url for the button and the text that appears on the button itself.   Then, to add the button anywhere in a … Continued

Animated Count Up – alternative to CountUp.js

Occasionally a project requires some stats to show off and there is no better way than by adding a little animation to the number values. Historically I would use a script like CountUp.js but on a few projects I used that on, ran into a few issues that needed attention to avoid console errors depending … Continued

Make Bootstrap 4 dropdowns appear on hover

Bootstrap is awesome. I seriously love it and always use it for project builds. And that’s either Bootstrap 3 or 4 – whatever the projects require, I’ll usually always go with BS. When it comes to dropdowns, especially so in navigation menus, I always prefer dropdown submenus to appear on hover. By default, this is … Continued

Improve security by preventing author lookup

By default, WordPress allows a URL query to lookup system authors. This is done by simply entering the following after the site URL: ?author=1 From a WordPress perspective, the system will see the ‘author’ query in the URL and then try to match a username with that ID on the system, just like the system … Continued

Add code to the WordPress Head, Body and Footer without a plugin

With tracking codes and pixels able to help you track conversions and the successes of your marketing efforts, these will need to be added to each page of your site to track user journey and behaviours. While there are plugins to achieve being able to do this, I always prefer to build this into my … Continued

Add WooCommerce attributes Into Nav Menus

While setting up an online store for a client, we needed to list product attributes in the menu. To take advantage of showing the current page feature of the menus (to show current page as highlighted), I didn’t want to have to manually add custom links for each attribute. The client had 150+ attributes so … Continued

Show different number of Posts Per Page for different Post Types

During work for a recent client, I needed to limit the number of posts on one archive, yet show every post on a single page for another. By default WordPress uses the value set in the admin screen ‘Settings’ > ‘Reading’ and seen as ‘Blog pages show at most’. But in my case, I needed … Continued

Fix ‘Another Update in Process’ error in WordPress

I recently stumbled upon an issue with updating WordPress.  A brand new install without content, I couldn’t see why I was facing the issue of updating WordPress.  All plugins had updated just fine, but when I went to update WordPress, I saw an ‘Internal Server Error’ message.  Trying the core update again, I was then … Continued