What do you want to save?
Add Code snippet
New code examples
-
PHP 2021-08-28 04:13:02
how-to-call-ajax-in-wordpress
function my_enqueue() { wp_enqueue_script( 'ajax-script', get_template_directory_uri() . '/js/my-ajax-script.js', array('jquery') ); wp_localize_script( 'ajax-script', 'my_ajax_object', array( 'ajax_url' => admin_url( 'admin-ajax.php' ) ) )... Add solution -
Javascript 2021-08-28 01:36:01
[Violation] Added non-passive event listener to a scroll-blocking <some> event. Consider marking event handler as 'passive' to make the page more responsive. See <URL> [Violation] 'setTimeout' handler took 59ms
jQuery.event.special.touchstart = { setup: function( _, ns, handle ) { this.addEventListener('touchstart', handle, { passive: !ns.includes('noPreventDefault') }); } }; jQuery.event.special.touchmove = { setup: function( _, ns, handle )... Add solution -
Other 2021-08-27 23:15:02
link bootstrap 4
<!-- Boostrap 4 CSS --> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" cross... Add solution -
Shell/Bash 2021-08-27 16:48:02
install bootstrap
<!-- Boostrap 4 CSS --> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" cross... Add solution -
Javascript 2021-08-27 14:12:02
jquery div hide show not working in wordpress
jQuery(document).ready(function($) { $('#menu-links li a').click(function() { //fetch the class of the clicked item var clickedClass = $(this).attr('class'); //reset the active class on all the buttons $('#menu-links li').removeClass('ac... Add solution