Change WordPress Core jQuery version to older or according to your need.
/** * Change jQuery version to older by wpdevkit.in */ function replace_core_jquery_version() { wp_deregister_script( ‘jquery’ ); // Change the URL if you want to load a local copy of jQuery from your own server. wp_register_script( ‘jquery’, “https://code.jquery.com/jquery-3.0.0.min.js”); } add_action( ‘admin_enqueue_scripts’, ‘replace_core_jquery_version’ );
Send Elementor E-Mail Form Attachments as Regular E-Mail Attachments instead of a link that is saved in the ftp server
Prerequisites WordPress & Elementor Pro I have searched for similar features requests in both open and closed tickets and cannot find a duplicate. The feature is still missing in the latest stable version of Elementor ( Elementor Pro. ) What problem is your feature request going to solve? Please describe. Elementor Contact Form email attachments […]
Highlight All Links To Current Page
This function will add the class “selected” to any links (even relative) that point to the current page. $(function(){ $(“a”).each(function(){ if ($(this).attr(“href”) == window.location.pathname){ $(this).addClass(“selected”); } }); });
How to enable allow CORS Policy Header in WordPress?
I’ve used a few different WordPress API’s – but for those of you using the ‘official’ WP-API, I had much trouble with this CORS — and what I found was that between the .htaccess approach and a few others I stumbled upon… adding this to your theme functions.php worked best. /** * Add this to your WordPress function.php […]
How to require minimum image upload dimensions condition for Woocommerce Products?
Add this code to your theme’s functions.php file, and it will limit minimum image dimentions /** * wpdevkit.in */ add_filter(‘wp_handle_upload_prefilter’,’tc_handle_upload_prefilter’); function tc_handle_upload_prefilter($file) { $img=getimagesize($file[‘tmp_name’]); $minimum = array(‘width’ => ‘640’, ‘height’ => ‘480’); $width= $img[0]; $height =$img[1]; if ($width < $minimum[‘width’] ) return array(“error”=>”Image dimensions are too small. Minimum width is {$minimum[‘width’]}px. Uploaded image width is $width px”); […]
How to replace wp-admin default logo with own custom logo
/** * paste this code in your function.php file , (by wpdevkit.in) */ function wpb_login_logo() { ?> <style type=”text/css”> #login h1 a, .login h1 a { background-image: url(https://wpdevkit.in/wp-content/uploads/2020/06/apple-touch-icon.png); height: auto; width: 300px; background-size: 100%; background-repeat: no-repeat; padding-bottom: 10px; border: none; height: 50px; padding: 0px !important; background-size: 100% 100%; } .wp-core-ui .button-primary{ background: #ff9900 !important; border-color: […]