0
votes
0answers
2 views

Accordion script fails after widget save process in admin [migrated]

I used the ddaccordion 2.0 script by Dynamic Drive to create an accordion function for a widget in admin area and some vexing issues are occurring as I cannot determine a solution. On initial ...
0
votes
0answers
21 views

Wanted to collapse all the widgets in sidebar by default via jQuery

I already applied jQuery on footer to Slide them up but i noticed that when the page is completely loaded the widget slides up properly but dont know how this again slides down automatically. I m not ...
0
votes
0answers
16 views

Prevent submission of widget form

How can I prevent submission of a widget form? The following doesn't work for me. And preventing submit won't work because Wordpress uses Ajax for those forms. jQuery(document).ready(function($) { ...
0
votes
1answer
40 views

Using AJAX in WordPress Widget

The past few days I've been Googling and searching for answers to no avail. I'm building out a "Featured Content" widget where the user can easily (via ajax/jquery) search for posts. Is it possible ...
0
votes
1answer
132 views

Right way to update widget on dynamic new input field

I have code to add an input field dynamicly in my theme. I have testd it, as a metabox and it works. But, not in a widget. First add and update, that codes work, but when I refresh page or try to ...
0
votes
0answers
102 views

jQuery does not work in widget backend

I created a widget which should use jQuery for switching between two views and implement the jQuery UI date picker. I was wondering why my jQuery code does not work as I noticed that the date picker ...
1
vote
1answer
110 views

How i can widget ID get after drag for wordpress with jquery?

I create custom widget with select option image but first time selected option image are not showing after saving this function work perfectly,I need this function only load after Drag in sidebar ...
0
votes
0answers
53 views

JQuery Accordion Menu Widget Expand All on Mobile?

Can anyone tell me how to/if it would be possible to set up this plugin so that when it's being viewed on the desktop, it works as usual (hover to expand) but when being viewed on mobile, the menu ...
4
votes
1answer
355 views

Enabling jquery when dragging available widget to sidebar area

So I have some widgets that are using some custom jquery on the backend. I can get the widget forms to call the jquery files but only AFTER I've saved the widget and reloaded the page. Is there ...
1
vote
1answer
60 views

Ajaxing function in widget class

I want to ajax function declared in function Widget in widget Class ,it have arguments belong to the widget i try this code add_action('wp_ajax_my_func', 'my_func'); ...
1
vote
1answer
619 views

Ajax load more button in Recent posts widget

I create Recent posts widget and i trying to create load more button for it to get more Recent posts links by ajax ,is there any tutorial for how to make it?
0
votes
1answer
95 views

Infinite-Scroll Plugin and Jetpack Infinite Scroll Plugin - Adding to “Thoughts” Theme

How do I enable infinite scroll (either with the infinite-scroll plugin OR the built in infinite scroll jetpack) on the "Thoughts" Wordpress theme? I'm a total noob at editing this stuff so if you ...
0
votes
1answer
98 views

How to change links in the 3 main categories, on widget category, to a javascript function call

I'd like to know.. How could I change my 3 main categories links, so they call a javascript function? I'm using Snapshot Theme from WooThemes. Here's the current state of the website: ...
0
votes
1answer
125 views

wordpress widget missing jquery

I have live score website and it is not wordpress based i build a widget for pure php websites but now i want to offer the widget to wordpress users problem is when i tried the widget i get three ...
2
votes
1answer
273 views

How do I rebind event after widget save

I am writing a widget who's form elements have a click event attached to. I bind it using jQuery. However, after clicking save, the bindings gets lost. That is, clicking those elements doesn't ...
0
votes
2answers
241 views

jQuery UI inside widget on admin page

I have created a widget that has quite a few settings, and so I am trying to create a tabbed menu (using jQuery UI) inside the widget settings of the admin page. The problem is basically that tabs ...
-1
votes
1answer
76 views

jQuery “on” handler does not fire on newly inserted widgets [closed]

I have a jQuery script attached to the widget.php page via an add_action('admin_footer') call. The jQuery executes fine on widget items that were in place when the page loaded. However, on newly ...
0
votes
1answer
181 views

Custom tabs widget don't work in google chrome, is blocked, do not change the tabs. Why?

Code is the problem or is a Google Chrome issue? Here is the code: /*-----------------------------------------------------------------------------------*/ /* Create the widget ...
0
votes
2answers
92 views

Multiple widgets in wordpress

I have created a wordpress widget. It has a drop down in widget options. The dropdown contains "facebook" and "twitter". If admin selects "twitter", then twitter follower count is displayed inside the ...
-1
votes
1answer
330 views

Using AJAX in a Widget to Sort items [closed]

Hi I am trying to use jQuery sortable to sort items in a widget on the admin side. However I am having trouble getting any data in the JS file when I do alert(order). Any idea what might be wrong ...
3
votes
1answer
614 views

Help adding image upload functionality to widget

I am working on a small WordPress widget and I am trying to set it up where the user can upload an image. So far, the necessary scripts are loading but when I click the "Media Library Image" button ...
0
votes
2answers
2k views

WP_enqueue_script() loads them always in wp_footer()?

This is my example code placed in functions.php: function my_init_method() { wp_enqueue_script('jquery'); wp_enqueue_script('jquery-ui-core', false, array('jquery'), false, false); ...
1
vote
1answer
214 views

Wrap the widget content with a div and get the widget title outside? [closed]

In this subject you can wrap a widget with the title outside but if you don't want a title, a <div> will not be closed, and the template is broken. So I would like to do this in jQuery instead ...
1
vote
2answers
823 views

Using Ajax call in jQuery doesn't work in widget

So I'm in the midst of creating a new conversion widget and I'm having some trouble getting the Ajax call to work in my widget. (works perfectly outside of WordPress). The problem at the moment is ...
0
votes
1answer
436 views

Jquery checkbox -show posts with checked tags

Using jquery, How do I show a checkbox with the list of tags in the sidebar, and only show posts of the checked tag? I cant seem to find this anywhere
1
vote
2answers
1k views

cannot drag and drop widgets since wordpress 3.2.1

I recently updated my site to wordpress 3.2.1 automatically. Now I tried to manage my sidebar widgets, and noticed I can no longer drag and drop the widgets around. If I look into my browser-console, ...
1
vote
1answer
706 views

AJAX Contact Form Issue

I created a contact form for my sidebar that is working perfectly in Chrome but not in IE or FF. I've been staring at it for hours and can't find out what I did wrong. I'm not getting any errors ...
0
votes
1answer
373 views

jQuery slider widget similar to cnet.com

I'm building a WP theme that requires a splash graphic "slider" widget (similar to what you see on cnet.com). I'd like to build one myself, mainly so I can have full control over the bits, but if ...
1
vote
3answers
308 views

Widget “Save” resetting jQuery hidden fields

I have a widget plugin that I've created, that lists about 10 fieldsets. jQuery runs at the beginning and hides and fieldsets that have no values. There are also buttons that allow to "Add" and ...