Google Tracking Telephone Clicks w/ WordPress integration

So if you have jQuery and the gtag method for Google Analytics running on your site you can add the following code to the head tag of your site. jQuery( document ).ready( function() { jQuery(“a[href^='tel']”).on(“click”,function(){ gtag(...

Gravity Forms Field Validation

So the basic way to add validation functionality to a form is by using the gform_validation filter.  This gives you the ability to look at the value entered into any field and then allow it to be submitted or display an error message. //runs validation on all forms...

Gravity Form Hooks

Hooks Run for Initial Form Load Enqueue Scripts gform_form_post_get_meta | FILTER gform_form_post_get_meta_{form_id} | FILTER gform_pre_enqueue_scripts | ACTION gform_pre_enqueue_scripts_{form_id} | ACTION gform_has_conditional_logic | FILTER...

Hide Video Download in Divi

If you want it to be site wide, go into the Divi > Theme Options > Integrations and add the following code to the head area of your site. <script> jQuery(document).ready(function() { jQuery(‘.et_cstm_video video').attr(‘controlsList',...

HTTP and HTTPS w/ www Redirect via .htaccess

So every now and then I run into an issue where I need to setup redirects for addon domains.  Here is one method that has always worked for me.  Adding it in this way allows for https and non http and also handles non-www and www to redirect to the www.newdomain.com...