What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-03-15 15:15:11
wordpress ajax url
<?php add_action( 'wp_footer', 'my_ajax_without_file' ); function my_ajax_without_file() { ?> <script type="text/javascript" > jQuery(document).ready(function($) { ajaxurl = '<?php echo admin_url( 'admin-ajax.ph... Add solution -
Javascript 2022-02-17 15:50:02
wordpress use jquery in functions.php
I know what you mean about the tutorials. Here's how I do it: First you need to write your script. In your theme folder create a folder called something like 'js'. Create a file in that folder for your javascript. E.g. your-script.js. Add your jQuery scr... 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
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5