One of the easiest ways to improve pagespeed and overall user experience is to let your Apache server do all the hard work, instead of spending tons of time making your code deliver best practice output. Google has a very effective, open source module for Apache and Nginx that will solve most issues on the fly. Below you can find some of the …
Geek blog
WordPress performance & optimisation functions
Below you can find a selection of functions that go in every project, that will instantly improve performance and pagespeed for a website without impacting usability and stability. Everything goes in your functions.php file …
Improve pagespeed score with inlining icons in CSS
One way to improve your pagespeed score is to use some simple CSS tricks to avoid renderblocking One very effective trick, when you use icons like Font Awesome or Dashicons, is to use inline URL encoding of icons and include them as inline images or backgrounds instead of loading a full font library. This is one very effective way, that is easy …
5 Tips and tricks for better pagespeed in WordPress
Below you can find 5 tips and tricks that work for everyone, which is easy to implement and do not require anything other than that you use them;-) 1. Remove style loader tag from CSS Place the following in your theme's functions. php file 2. Remove the following, for overhead and unnecessary code Place the following in your theme's …
Measure phone calls by campaign using WordPress shortcode
Without investing in an expensive external system, using WordPress, you can easily use different phone numbers on your website, based on the source of traffic. A simple implementation of the code below, placed in your themes functions.php file, obviously adapted to your needs, and a consistent use of a shortcode called [showphone] in places …
Improve loading speed of React single page application
Building actual websites with React as a single page application will quickly get you punished by Google, due to the amount of actual Javascript lines of code in your actual build. Making sure you take advantage of codesplitting is essential if you have any desire to get customers from organic Google searches. Here is an example of splitting …
Improve pagespeed score with simple trick
One way to improve the overall pagespeed of your site is to load scripts deferred or async. When you load this way. The following wrapper for all your scripts will make sure that nothing is executed until the DOM is ready for you …
Remove related products from WooCommerce
I have a client that doesn't want to show any related products under each single product. To remove this is easy. Simply place the following snippet in your functions.php and you have removed this functionality, using the preferred best practice way that should be compatible with future upgrades of WooCommerce …
Remove shipping estimate notice on WooCommerce cart
This one took me a while to find, but it's fairly simple when you find the right filter for the job. Luckily WooCommerce has filters and hooks for almost any need. Place the following snippet in your functions.php and the notice about shipping options being updated should be gone Let me know if it works for you, or post your questions in …
Add Facebook Opengraph data to WordPress
If you want your previews to show up nice and unique in Facebook and other social media supporting the Open Graph standard, here is a good starting point for generic pages and posts, with a fallback image for pages not having a featured image set The example is for Genesis themes, but can easily be modified to fit a non-genesis theme. …
Modify Gravity Forms to show Zip before City
In Denmark, and probably lots of other countries, the zip is listed before the city, which makes the Address field in Gravity Forms difficult to work with, since it adds the City before the ZIP. Lucky for us, Gravity Forms has many hooks and filters, which makes it easy to change this behavior. Add the following to your functions.php and Voila, …