The PHP code below shows how to pre-fill a list field in Gravity Forms. This is done using the gform_field_value_$parameter_name filter that allows you to populate a field with values…
The JavaScript below can be used to collect the number of Adblocker users visiting your website in Google Analytics. This has been written specifically for AdSense ads and will not…
The following script (jQuery and JavaScript) shows how to set a random colour on elements - in this case, a background colour in inputs. function set_input_random_colour() { var random_colour = …
At their simplest, an anonymous function is an unnamed function. There are many ways they can be used to simplify your PHP - but when it comes to WordPress I've…
CloudFlare is a popular service that speeds up websites by managing the websites DNS and routing traffic to a visitors closest cache of static content, such as images, CSS files and…
The following jQuery script shows how to get the text from an element, without getting the text from any child elements. For example, if you have a label that contains…
Gravity Forms uses a jQuery character count plugin called 'jQuery Textarea Characters Counter Plugin v 2.0' to handle the character counting and associated functions for form fields. The plugin lives…
Here's a handy little JavaScript function that lets you dump the contents of an array, just like you would using var_dump in PHP. function dump(obj) { var out = '';…