Linked Questions

0
votes
1answer
5k views

owl carousel not working after ajax load [duplicate]

i use jquery 1.11 and this code to ajax load wordpress post content in sidebar . everything is good but jquery functions of owl carousel not work and the carousel in post content not showing anything. ...
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 ...
0
votes
1answer
4k views

Jquery function working in Dev Console but not otherwise [duplicate]

Can someone help me utilize native wordpress jquery to run my function? The only working test i have done is to load an external jquery resouce via the chrome dev console and then add my function to ...
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 () { ...
0
votes
1answer
341 views

Wordpress video end function [duplicate]

Possible Duplicate: $ not defined using jQuery in Wordpress I need to trigger a alert box when video ends THis is the code i got from google <script> $("iframe[src^='http://www.youtube....
-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 ...
-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 ...
0
votes
1answer
222 views

retrieving page content per AJAX [duplicate]

I am currently working on a single page website. I am trying to retrieve the page content via AJAX. The page URL is http://mylocalserver/sad/wp/clients. $.get( 'http://mylocalserver/sad/wp/wp-...
-2
votes
1answer
66 views

How to Add jQuery cod in wordpress [duplicate]

I would like to add this small jQuery code in my wordpress website but no way. $(document).ready(function(){ $('.flex-active-slide').append('<div class="playoverlay"></div>'); }); I ...
-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 ...
-1
votes
1answer
53 views

Cannot get jQuery to work in WordPress [duplicate]

I had the following jQuery script on a static HTML page and it worked fine. However, when I enqueue it into WordPress it doesn't work. Here is the JS file. $(window).scroll(function() if ($("....
-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
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
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 ...
0
votes
0answers
16 views

Using jQuery safe mode in WP? [duplicate]

I am pretty new in WordPress and I know just a litle about jQuery and Javascript and I have the following problem: Into my functions.php file I load jQuery, the jQuery FlexSlider pluging (that create ...
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
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
2answers
10k views

Firebug says jQuery is loaded but $() and jQuery() are not defined

I'm trying to test my wordpress page with some simple jQuery script but it won't work. I've loaded the script with wp_enqueue_script('jquery'); in functions.php as explained in the wordpress guide ...
3
votes
1answer
7k views

Using FlexNav with WordPress [closed]

Has anyone managed to get the FlexNav plugin - http://jasonweaver.name/lab/flexiblenavigation/ - working with WordPress? I've got an HTML version of the site working fine, but I'm running into ...
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' =>...
0
votes
0answers
2k views

Add title and caption to thumbnail image on mouseover

I'm trying to add a simple mouseover image to display the images title and caption data. I've added the js in my scripts file which is being called okay yet the rollover is not working. Essentially I ...
1
vote
1answer
2k views

Javascript stopped working [closed]

For some reason, the scripts that I have set up on my wordpress install stopped working yesterday afternoon. I had been editing things, but I'm not sure what I could have done that caused it to stop. ...
0
votes
1answer
857 views

jQuery does not work on WordPress editor

I've added some content to WP's editor, however the new content does not respond to the click behaviour. Here's how I've added the content: add_filter( 'default_content', 'custom_editor_content' ); ...
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 ...
1
vote
1answer
1k views

How to add fixed position in menu class for Twenty Twelve theme?

I have already looked at many jquery examples on how to make the menu sticky. I have applied these tutorials on clean html pages and they have worked perfectly. However, when I try to apply it on the ...
0
votes
1answer
1k views

Ajax Form seems to post, but does not return

I have a very simple form with 3 checkboxes allowing users to flag a video as inappropriate. I'm trying to make a simple ajax request to create an email, and give the user some feedback. The form ...
0
votes
1answer
90 views

inner jQuery won't work

i'm enqueuing jQuery with wp_enqueue_script( 'jquery' ); (i see <script type='text/javascript' src='http://localhost/wp/wp-includes/js/jquery/jquery.js?ver=1.10.2'></script> <script ...
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
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 ...