Automatic CSS/JavaScript Cache Busting

/** * Replace the `ver` query arg with the file’s last modified timestamp * * @param string $src URL to a file * @return string Modified URL to a file */ function filter_cache_busting_file_src( $src = ” ) { global $wp_scripts;…Continue reading

Jump Links

.wpsJumpLinks{ padding-top: 65px; /* Adjust the value depending on the desired offset */ margin-top: -65px; /* Make sure the value is the same as padding-top, but with a negative sign */ scroll-margin-top: 65px; /* Adjust the value depending on the…Continue reading

WP Simple Pay: Hide reCAPTCHA Badge

/** * @link https://library.wpcode.com/snippet/ro8w3kow/ */ add_action( ‘simpay_form_before_form_bottom’, function() { ?> This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.Continue reading

Change the Submit Button Color

/* Change the color of the submit button Original doc link: https://wpforms.com/developers/how-to-change-the-submit-button-color/ For support, please visit: https://www.facebook.com/groups/wpformsvip */ .wpforms-form button[type=submit] { background-color: #066AAB !important; border-color: #066AAB !important; color: #fff !important; transition: background 0.3s ease-in-out; } .wpforms-form button[type=submit]:hover { background-color: #066AAB…Continue reading

Automatic CSS/JavaScript Cache Busting

/** * Replace the `ver` query arg with the file’s last modified timestamp * * @param string $src URL to a file * @return string Modified URL to a file */ function filter_cache_busting_file_src( $src = ” ) { global $wp_scripts;…Continue reading