Linked Questions

0
votes
0answers
9 views

jquery based filtering not working only in wordpress, works in codepen [duplicate]

For some reason (most likely jquery conflict) I can't make the below code to work in my WordPress site. It works in codepen site without issue. I tried to add some jquery no conflict method. But I ...
0
votes
1answer
43 views

$ is not defined [duplicate]

I am learning WordPress and I am working on the contact us form. I am using jQuery validation. I am using the below code. function contact($atts){ $html='<form name="invite" id="...
0
votes
0answers
39 views

Fade-in Fade-out doesn't work in Wordpress

I have back-to-top script with an arrow icon which appears when scrolling down and disappears when the page content is on top. Works perfect, but when I insert the script in Wordpress the scrollTop ...
0
votes
0answers
9 views

Hide Load More Button When Finished [duplicate]

I've tried just about every code on here under the sun and for some reason my load more button is not hiding when there are no more posts to show. I'm using a custom post type and a custom loop to ...
0
votes
1answer
45 views

JavaScript: TypeError: xyz is not a function after upgrading WordPress

After upgrading WordPress from 4.9.13 to 5.3.2 some scripts on website stop working in weird way... (example for clndr.js). All scripts are added via wp_register_script and wp_add_inline_script ...
0
votes
0answers
20 views

jQuery isn't working with wp_enqueue_script() [duplicate]

I'm trying to set focus to textbox in a modal using the code below: $('#search-modal').on('shown.bs.modal', function () { $('#s').focus(); }); this code is in script.js file which I add it using ...
2
votes
2answers
2k views

Basic Wordpress AJAX Call

I have a fresh WP install and for purposes of keeping things simple I currently just have a simple action as follows in my functions.php: function getFruits() { return json_encode( ['fruits' =>...
-1
votes
1answer
38 views

Element works, but not on wordpress site [duplicate]

I made an instagram widget on codepen. It works great and it functions. However, when I try adding it to my site it does not show up. Does anyone have any suggestions for how I could get this ...
-2
votes
1answer
50 views

Script not working in Wordpress [duplicate]

This is the rotation script for images <script> var image = new Array (); image[0] = "http://placehold.it/20"; image[1] = "http://placehold.it/20"; image[2] = "images/banner3.png"; image[3] ...
0
votes
1answer
1k views

onclick jquery function not working in wordpress header file [duplicate]

I am trying to get alert on click event of a tag, but it seems to be not working. Here is the code. I put this in header.php <script> jQuery(function() { jQuery('.neha').click(function () { ...
-1
votes
1answer
285 views

Custom JQuery script in page template won't work [duplicate]

i created custom page template where i inserted followed JQuery script. <script type="text/javascript"> $( document ).ready(function() { console.log( "ready!" ); }); </script> But it ...
2
votes
2answers
509 views

Is dynamic forms/entries possible in Widget?

I am new to WordPress Plugins development, and I just started working with the widget. My question is: What are the limitations of WordPress Widget? I tried to use jQuery to make the Widget Form more ...
0
votes
1answer
3k views

Contact form 7 issue with jquery - hiding/showing fields [duplicate]

I've followed a tutorial regarding how to hide/show Contact Form 7 fields using jQuery. I have used this before and it worked wonders. However, on a new site for some reason it isn't working. The ...
0
votes
1answer
4k views

TypeError: $ is not a function Error using parallax effect in Wordpress Template [duplicate]

I`m trying to include a parallax Effect into one of my cutsom page templates. The js function is returning the following error in the firebug console: TypeError: $ is not a function The error is on ...
-2
votes
1answer
335 views

Jquery dropdown menus working locally, but not in Wordpress [duplicate]

So I've followed this tutorial to the T, even downloading source files and implementing locally: http://red-team-design.com/simple-and-effective-dropdown-login-box/ I also saw another poster here ...

15 30 50 per page