This WordPress plugin can be used to create advanced custom fields and attach them to post, pages, specific posts or pages, and other conditions. URL –Â https://wordpress.org/plugins/advanced-custom-fields/
Just place this code anywhere after including jQuery library. This helps the user scroll to the ‘element’ id in href=”#element”. $(function () { /* Slide to # location with animation */ $(document).on(‘click’,...
Here is a very cool way to input color code using a basic HTML input tag. This may eliminate the use of a fancy jQuery color picker at a basic level 🙂 Demo Open demo in a full window – https://demos.webdevpuneet.com/html/input-color/index.html HTML <input...
How to prevent form from submission if user has not gone through Google ReCapcha ?jQuery(document).ready(function(j){ jQ(‘#formid’).submit(function(e) { var recaptcha = j(“#g-recaptcha-response”).val(); if ( recaptcha === “” )...
You must have faced this issue such that the background changes on hovers on mobiles and touch devices remain hover-styled even after you have touched the screen and not touching it anymore. The simple solution to this is enclosing all hovers in the following media...
// Extra small devices (portrait phones, less than 576px) @media (max-width: 575.98px) { … } // Small devices (landscape phones, 576px and up) @media (min-width: 576px) and (max-width: 767.98px) { … } // Medium devices (tablets, 768px and up) @media...