Linked Questions

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' =>...
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 ...
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
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 ...
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' ); ...
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
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
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
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
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 ...

15 30 50 per page