Leveraging AI to Supercharge Your WordPress Business Website
In today’s competitive digital landscape, every business website needs an edge to...
21.Apr.2019 | Code Snippets
A quick snipped of code that can be used attach a function to the escape key. Great for adding or removing a class. I always attach this to close a popup, for example.
jQuery(document).on( 'keydown', function ( e ) {
if ( e.keyCode === 27 ) { // ESC
// Do Something...
}
});
Share
In today’s competitive digital landscape, every business website needs an edge to...
WordPress has come a long way since its humble beginnings in 2003....
In the ever-evolving landscape of website development, staying ahead of the curve...
To exclude draft posts from appearing in the ACF Relationship field, add this code to your functions.php file. All you...
A quick way to remove empty p tags from custom shortcodes in Wordpress. <?php add_filter("the_content", "the_content_filter"); function the_content_filter($content) { $block...
Handy bit of code you can use in your custom templates that grabs the all the page or post data by ID:...