A client side scripting language useful for making interactive web sites

learn more… | top users | synonyms

0
votes
1answer
175 views

Blur.js with WordPress - Enqueued, but server not finding file

So as the title suggests, I'm trying to run blur.js on my WordPress theme. I have enqueued the script in functions.php: function load_oves_methods(){ wp_enqueue_script( 'blur', ...
1
vote
1answer
48 views

How to add comment on scripts using function in wordpress?

this is the code im using to call script if the browser is ie <!--[if IE]> <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> <style type="text/css"> ...
0
votes
0answers
39 views

Add Media Button Stops Working After Publishing The Post

Add Media Button Stops Working After Publishing The Post. It works fine for the first time when I try to create a post or page. Once I publish the post, it stops working. It is not just Add Media, all ...
0
votes
1answer
428 views

WOW.js Script Tag Initialization Header/Footer

hope things are going well. I'm attempting to use WOW.js http://mynameismatthieu.com/WOW/docs.html with animate.css to add animations to my site. WOW.js requires me to initialize it by adding the ...
0
votes
1answer
25 views

How can I load certain JavaScripts only on blog pages?

Here's the situation I'm having. I am developing a site and on the single post pages of the site I am using various social sharing buttons (i.e. Google+, Facebook, LinkedIn, Twitter, etc). I am ...
1
vote
1answer
235 views

ASCII to Unicode conversion and then save the data into database using WP post editor field

Here is the WordPress default post editor as we know: You may notice, here are some garbage texts in the Title and Description field. They are ASCII texts. PLOT In Bangla, a widespread software ...
0
votes
0answers
15 views

Justin Stern's bulk export for users

I want to bulk export lists of users in WP. I found this tutorial which is great: http://www.skyverge.com/blog/add-custom-bulk-action/ The problem is, I cannot seem to figure out how I need to edit ...
0
votes
0answers
100 views

Calendar based on Codrops

I've been banging my head over this problem for more than a week now and just cound't manage to make it happen. Event though I know that it is possible. I'm building a calendar based on this plugin ...
0
votes
0answers
374 views

Multiple Frontend Filters Using Advanced Custom Fields

I've got a series of custom post types set up, and a large amount of custom fields are linked to these post types via the Advanced Custom Fields plugin. I want to set up a series of checkboxes on the ...
-2
votes
1answer
758 views

Changing when mobile menu is displayed

Wordpress seems to be displaying the mobile menu (in Twentythirteen at least) at 643px wide, however i need it to activate at 767px. I cannot seem to be able to find what activates the menu at 643px, ...
0
votes
0answers
9 views

Javascript not bring used in 3.8 [duplicate]

I'm getting an issue on http://bollywoodbang.ca/wp/, it appears that my javascript files aren't working. I called them in functions.php using wp_enqueue_script(), and in the inspector says that the ...
0
votes
2answers
52 views

Dequeue scripts in IE7 only using functions.php

Is it possible to dequeue scripts in IE7 only using functions.php? I have my scripts configured in the following way: // JS function scripts() { // Register scripts & styles ...
1
vote
1answer
99 views

Path to image in js with wp_localize_script [closed]

I'm trying to implement animated svg icons into my Wordpress theme. All's is great, except I can't figure out how to put proper url for svg images in this js file: var svgIconConfig = { plus : { ...
0
votes
0answers
16 views

Nivo slider not working [duplicate]

I have added nivo slider plugin to wordpress however it doesn't move past the git loading file.I believe the problem is in the way i am loading the jquery. I have included the javascript ...
0
votes
0answers
47 views

retrieve data form wordpress into app problem with $.ajax access to an object

i'm working on my first app, based on my blog created with wordpress, anyway the problem is that i can't access to to different categories using json api. This my code: var requestData = { ...
0
votes
1answer
126 views

Add scripts on custom post add/edit pages Not Working

im Trying to Add scripts on custom post add/edit pages but Not Working PHP Code ,(it's working and Get Js Code) if(strstr($_SERVER['REQUEST_URI'], 'wp-admin/post-new.php') || ...
0
votes
1answer
172 views

Is there a WordPress plugin to design WebGL? [closed]

I have been working as a WordPress designer/developer for some time and now I've decided to write a plugin myself. I also have some OpenGL experience (not web based). I was thinking is it worth ...
0
votes
0answers
33 views

How to prevent selected JavaScript , CSS inline W3 total? [on hold]

I use w3 total, inline JavaScript and CSS feature (HTML minify). But after enabled inline JS, lazy load video wordpress plugin stop working. How do I exclude w3 total automatically inline lazy load ...
0
votes
1answer
95 views

Is it OK combined wp-include js, jquery, css?

I have combined wp-include folder JavaScript, Jquery, CSS, jquery.ui, min.css and min.js files using W3 total. JS, jquery, jquery.ui and min.js files are combined and added before tag ( w3tc) with ...
0
votes
1answer
123 views

Running javascript in a child theme. Works in jsfiddle

Here is the JSFiddle http://jsfiddle.net/thornwalker/3LQjS/ I'm trying to get it to run on my wordpress blog and having no luck. My skill is novice at best, but up until now I've been able to muddle ...
0
votes
0answers
107 views

Including Older Version of jQuery for IE7/IE8

I realise jQuery 2.0 dropped support for some browsers including IE7 and IE8. I'm only using a bit of jQuery on my WordPress site, but since I need to support IE7/IE8, I was wondering what the best ...
0
votes
0answers
13 views

Comments - Ensure the correct field is highlighted for nested replies

I've got my comments working great, well.... Just about Great!!!! I'm a passionate UX guy doing my blog. I've got the comments form to beautifully reposition its self under neath a comment so that it ...
8
votes
1answer
5k views

How to add defer=“defer” tag in plugin javascripts?

I couldn't add defer tag in plugin javascripts. Google developer pagespeed test suggests me to add defer tag in contact form 7 javascripts. This is how contact form 7 includes javascript in header. ...
2
votes
1answer
220 views

WP3.5 Media Uploader - how to make it accept multiple images?

I'm wondering how to make WP3.5 media uploader return 2 or more items in attachement? It always runs once even if 2 items are selected. The code: $('.button').on('click', function(){ var ...
5
votes
2answers
2k views

Add custom shortcode button to Editor

Before the new version of Wordpress 3.0 came out I was using this jQuery code below to add custom buttons for my own shortcodes to the editor toolbar in the admin panel, it worked great. However with ...
0
votes
0answers
59 views

How would I remove an inline googleAPI font script in the the parent theme header.php?

Is there any way to remove the function call to the googlefontapi font in the parent header.php file besides copying the parent header.php file to the child theme and then overriding it and delete the ...
1
vote
0answers
112 views

Javascript WP Object Documentation?

I was working on implementing the media library within one of my plugins/themes. I found a nice tutorial (http://mikejolley.com/2012/12/using-the-new-wordpress-3-5-media-uploader-in-plugins/) that ...
0
votes
0answers
119 views

Adding new tab to WordPress editor next to visual and text tab

Hi, The topic title says it all, I want to add another tab next to visual and text tab. So far I found this topic here: Add new tab next to Visual and Html in wordpress text editor? and this New ...
-1
votes
1answer
181 views

Custom jQuery plugin not working

I'm trying to use this addon: http://trentrichardson.com/examples/timepicker/ to make it possible to edit a post date and time in the frontend before submitting it. I'm registering my scripts like ...
0
votes
0answers
87 views

How to Insert Popup box shortcode in wordpress

I create a Tinymce Popup box for inserting shortcode on content area in wordpress. When I click shortcode button then popup box open successfully with input field. But when I click popup box insert ...
1
vote
4answers
9k views

How can you check if you are in a particular page in the WP Admin section? For example how can I check if I am in the Users > Your Profile page?

I'm building a plugin and I want to add bits of javascript in the admin head but only for certain admin pages. I don't mean pages as in a WordPress page that you create yourself but rather existing ...
0
votes
0answers
82 views

PHP random number in email

I have a Wordpress website where i am making a form so that when a user fills out that form he gets a confirmation email and receives a random order number. I have this PHP function which creates that ...
0
votes
2answers
92 views

Absolutely print script in footer

I am looking for a solution to printing a Javascript include in the footer of WordPress front-end, and I know there are options for this. However, what would allow me to do so with these in mind: ...
0
votes
0answers
65 views

How to block action if post is “dirty”?

For a plugin I'm working, I've added a button that needs to be either disabled or show a warning if the current editing post is dirty, that is, if anything has been modified and not saved. Looking at ...
0
votes
1answer
1k views

Why a SlideShow (made using JQuery FlexSlider) can't work if I load it form functions.php but work if I load it from my footer.php file? [closed]

I have the following situation: I am carrying this pure HTML theme (that use BootStrap CSS framework) into a WordPress theme. This is the original pure HTML demo theme (I have the entire source code ...
0
votes
1answer
57 views

Plugin and javascript placement

I am making a plugin. I already use wp_enqueue_script with my javascript files. When shortcode is executed I need to write some javascript code which will contain this piece of code: ...
6
votes
1answer
267 views

Executing Javascript When a Widget is Added in the Backend

I have widgets that have javascript controls attached to them. If the widget is present when the widget admin page loads, the controls work correctly. When I add a new widget, they do not work ...
0
votes
1answer
85 views

How to correctly add JQuery in a WP theme?

I am pretty new in WordPress and I have the following doubt: I have to include JQuery into a theme and I am doing in this way: I create the following function into functions.php theme file and I add ...
0
votes
0answers
269 views

Customizing the 3.5 “Add Media” popup (Backbone.js)

Here's yet another question in regard to the new(ish) 3.5 "Add Media" popup and how to customize it! What I'm trying to do I'm attempting to do four main things: 1) Create a custom tab titled ...
6
votes
1answer
638 views

How to load wp_editor via AJAX

Does anyone know how o load wp_editor via AJAX in WordPress? My markup and editor is getting loaded properly but editor controls are not getting loaded properly, it may be because Javascript is not ...
0
votes
2answers
171 views

Elegantly using JavaScript on widget admin forms

I'm working on a project involving a lot of widgets, and I'm thinking it'd be really great to have a "More options" section built using jQuery UI Accordion that expands when clicked. So, I've ...
1
vote
1answer
569 views

Logout user and delete cookies from the client side?

I'd like to be able to logout the user. I can do this by calling wp_logout() on the server but if the user drops connection is there a way to log them out? The wp_logout() method clears the cookies. ...
0
votes
0answers
189 views

Remove WordPress default registration client side validation?

Is there a way to remove/disable WordPress default registration client side validation? I dislike the pop alert and would like to add my own client side validation visual to users. Please assist me ...
0
votes
2answers
97 views

Dynamic Gallery

I'm building a single page website and that means that all the links need to call for post content dynamically. I found this tutorial and with the help from some folks from StackOverflow I managed to ...
3
votes
3answers
1k views

Editing Source Code in Wordpress

I am a senior in a college computer science program, and therefore have a decent knowledge of code and several languages. However, I am doing a summer internship type program, and the company I am ...
1
vote
2answers
2k views

WordPress Jquery Fade in, Fade out effect

I'm following a tutorial. I've included the hover.js with the following code: $(function() { // OPACITY OF BUTTON SET TO 50% $(".imgopacity").css("opacity","0.5"); // ON MOUSE OVER ...
0
votes
0answers
26 views

Embed from wordpress to another site (object within post)

So I'm using the built in wordpress player for my podcast within a blog I syndicate through tumblr. I was hoping to have the player display on other sites. Is there a way to embed the player (maybe ...
0
votes
0answers
40 views

Compare revisions on pending posts doesn't work for authors and lower

I'm using map meta cap to allow extra permissions (edit/publish/edit_others/read_private/edit_private) if the user and post share a category. Comparing revisions doesn't work beyond the first ...
0
votes
0answers
53 views

Migrating jQuery gallery to Wordpress

I'm moving my website to Wordpress and I'm trying to migrate my old gallery over. This uses Jquery and picasa. I've tried a few ways of loading the scripts, played with jquery versions, even ...
0
votes
0answers
53 views

Click Swatch, Change Image

I'm using the Advanced Custom Fields plugin and am trying to get a series of images to change when their corresponding Swatch Colour is clicked. Here's what I've got so far for my images loop: ...