jQuery on click scroll to content

I needed a way to on clicking of an A tag scroll to top of a list that was getting updated.  So here is the code that I came across. <script> jQuery(document).ready(function() { jQuery(‘a.link-designation').on(“click”, function () {...

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',...

On Click Download and Redirect to Thank You Page using jQuery

So I ran into a rather interesting need of a client. They wanted to have a link to a downloadable file but also have a redirect to a thank you page. I found that I could add some data to the link that allowed me to write some jQuery and allow the link and thank you...

Disabling a CheckBox until a Textarea is scrolled to end

So there are sometimes occasions where I need to have a person who is on a form scroll to the end of a checkbox to try to make sure they have read it. Scrolling to end just means they acknolwdge this even if they don't read it so I created the following jQuery. I...

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(...