A client side scripting language useful for making interactive web sites

learn more… | top users | synonyms

0
votes
2answers
24 views

custom post with loading script per single post

I read many Q&As here on SO...(and elsewhere but they don't count...lol) I think I follow the rules of WP.org but still it does not load the scripts. Scenario: Custom template for post in Php: ...
0
votes
0answers
17 views

Dropzonejs with WPCF7

I have a form with the plugin WPCF7 and i have made it possible to upload multiple files(with drag and drop). Now the customer wants to upgrade the form too be able to upload several files at a time ...
0
votes
1answer
44 views

Adding javascript to functions.php causes problems with my template

I want a "Read on" link that moves to another part of the page when clicked. I understand the HTML bit and I have even used some nice scrolling. It works. But when implemented breaks part of my ...
0
votes
0answers
18 views

Dynamically update content inside page [on hold]

I'm trying to replace a content dynamically on my WordPress Site, I've countdown plugin installed, now what I'm trying to do is : when countdown reaches 00:00:00 the text above countdown plugin should ...
0
votes
0answers
12 views

Woocommerce requires refresh for coupons to take effect

I am having a rather annoying problem with my wordpress // woocommerce. My coupons discount will not show on the total at checkout unless you refresh the page after you have entered the code. ...
0
votes
0answers
27 views

Querying latitude and longitude into google maps correctly

Im have custom fields for lat/lon and querying them into google maps. The query im using works if I know the exact number of lat/lon. $args = array( 'post_type' => 'events', ...
0
votes
1answer
25 views

Why is this jquery / java script code not working in mobile / in devices?

I have following script in my header.php : <script type="text/javascript"> /* to show back the left side bar back when the LEFT side bar is moved next/below to the center/content */ ...
0
votes
0answers
38 views

AngularJS with route and JSON API

I tried to use AngularJS with the plugin JSON API. I have no error but the route doesn't work, and the page doesn't print the partials/... ? I changed the permalinks to %postName%. I use MAMP and my ...
0
votes
1answer
19 views

I have no idea why I cant separate the two different elements on my WordPress webiste [on hold]

http://hungerpass.com/feeder-page/test/ I want to put a margin between the Discount Days and Discount Time/Percentage but whenever I add a top or bottom margin to either div it moves the whole ...
0
votes
1answer
25 views

How to adjust the selector used in JS to target only the one that was clicked on?

I have a js question that has me somewhat confused. What I have is a plugin that allows following. It's working quite well, except for one thing in particular. When there are a couple of follow links ...
0
votes
0answers
7 views

What's wrong with this code? (TineMCE)

I'm trying to make a button that when it clicked, it wrap some text with shortcodes. Everything went good and I did this button, but now, I want to go to the next step which is to make the button a ...
0
votes
1answer
28 views

How to add JS snippet before closing <head> tag?

I'm setting up jQuery UI on one of my WordPress pages that uses a custom template (course-landing-page.php). I enqueued the scripts for jQuery UI the proper way, but I need to add a JavaScript snippet ...
0
votes
0answers
23 views

Not including wp-load.php in plugin

Okay, so I'm trying to get a plugin approved, and I've fixed most issues except the fact that I'm using require_once to load wp-load.php. I create a button in the admin bar, and there is a javascript ...
0
votes
1answer
46 views

Custom Wordpress+PHP+MYSQL+AJAX form, submit event not captured by Javascript, but does POST data to the DB

I'm building a little form to let users update their contact information outside of the vanilla Wordpress user management systems. I plan to use a simple CRUD setup and throw in some sanitation. I've ...
6
votes
0answers
98 views

Customizer JS API

Okay so I have been trying to educate myself to create new panels sections and controls dynamically using customizer's JS API. It has been frustrating few days and I was unable to get the exact way ...
0
votes
0answers
5 views

Javascript loading screen

Is there a javascript loading screen built into wordpress already? I have a custom metabox in the dashboard and when the user clicks on buttons inside the box some ajax fetches content. During that ...
-1
votes
0answers
17 views

How to remove Buy Now button in woocommerce caro

I wanted to make an online catalog of my products . I recently tried woocommerce and I tried the woocommerce carousel. Everything worked fine except that there is a buy now button appearing in each ...
1
vote
2answers
31 views

Problem in loading javascript in footer

I have written a small plugin where i have loaded following scripts wp_enqueue_script('jquery', plugins_url('/js/jquery.min.js', __FILE__),'','1.7',true); wp_enqueue_script('new-cycle', ...
-2
votes
0answers
14 views

Script Injected on Wordpress Comment Section [on hold]

Can anyone please tell me if this is critical or not? Someone posted a comment like this on our blog post but we trashed it now. However, it looks like we cannot permanently delete it as the items on ...
0
votes
1answer
51 views

Passing PHP Variables to JS using Localize Script

Im trying to pass some variables (author of the post, category of the post, and title of the post) to a js file using wp_localize_script. I cannot, for the life of me get these correct. How can I ...
0
votes
0answers
21 views

Woocommerce cart not showing up single product [on hold]

I have a woocommerce cart it is not working when i click on a single product for example [enter link description here][this] product. And the browser shows a javascript error Uncaught TypeError: ...
0
votes
0answers
30 views

Sticky Widget with scroll limit

I have a Widget fixed as the visitor scrolls down the page. At a certain point though, the widget needs to 'stop' so wider content is not covered. I found this answer at Stack Overflow (first ...
0
votes
1answer
90 views

Simple Button onClick to trigger jQuery function

I have looked similiar questions but any of it didn't worked I want to trigger jQuery function with onClick button, but it didnt worked. HTML structure : <button class="my-button" ...
0
votes
1answer
15 views

Jetpack Comments Change Placeholder Text

Is there a hook or template file where I can change the placeholder text on the #comment textarea w/in the comment form? Jetpack loads the form via an iFrame which prevents changing the placeholder ...
0
votes
1answer
70 views

How to insert HTML/CSS/JS into my iframe plugin?

I currently have an iframe plugin that displays on a WordPress page by shortcode. Currently I have been displaying websites in my iframes "src" but I recently came across an issue to display my very ...
0
votes
3answers
53 views

Include Jquery libraries in wordpress theme?

I have a file in my theme's JS folder named cycle2.js. How do I include the Jquery from 'wordpress→includes' into my theme? How do I load this custom JavaScript file 'cycle2.js' into my theme? I ...
0
votes
1answer
19 views

Transforming an wp_options database array into a javascript obect?

In my WP code I grab my options information as such $options = get_option("kaipo_plugin_options"); The array that I print out looks as follows ...
0
votes
0answers
24 views

Control When a Script Is Loaded

My plugin usually appends my widget to the end of each post as intended, but not consistently, sometimes needing a page refresh. There are two main parts to the plugin: a div, which gets appended to ...
0
votes
1answer
25 views

Custom JS on a specific page

So, I have the following custom JavaScript in a page. (Written exactly the way it shows, except the img src) <script ...
0
votes
0answers
25 views

Correct way to write jQuery functions in Wordpress

I'm working with an AJAX based Wordpress template (custom), but I'm having some issues getting jQuery to play nicely. I've enqueued everything (in the right order) and to an extent it does work, but ...
-1
votes
1answer
57 views

Javascript button to call custom fields data

I am trying to create this button for a custom field that I have on my website <button type="button" onclick="document.getElementById('demo').innerHTML = Date()"> Click me to ...
0
votes
0answers
128 views

Wordpress 4.2 mce-views migration guide?

With Wordpress 4.2 planned to be released next week, I was wondering about the finalizing of the new WP-views API. Apparently even the more simple examples of mce are failing in 4.2. I know that api ...
0
votes
0answers
18 views

Mootools, Wordpress, Print Nuke problems

I am wanting to implement a code for eliminating unwanted DIV's during printing that I found here: http://davidwalsh.name/css-print-javascript-double-click I got this working correctly in a regular ...
0
votes
1answer
32 views

Custom Plugin - CSS works, JS doesn't

In the plugin I'm making, I use separate js and css files (____.js, ____.css). This is the first time that I've included an external .js file in anything. I'm registering and enqueueing both in the ...
0
votes
0answers
16 views

Customize Theme Screen Keeps Reloading

I have a theme that I have customized, and when I go Appearance > Themes > Customize the page keeps reloading, over, and over, and over... This is the only page that does this. I have tried ...
0
votes
1answer
15 views

Receive “menu-toogle” event from section menu in customizer

I'm building a plugin that does some transformations on front page through JS script. I'm trying to build a contextual control in the customizer so that when a certain section is opened I modify the ...
0
votes
1answer
54 views

php variable inside javascript code

I placed a javascript inside a .php file $script = "<script type='text/javascript'> jQuery( document ).ready( function($) { $(document).ready(function() { ...
0
votes
1answer
20 views

Remove / overwrite some functions in buddypress.js

What's the best practice to overwrite some JS-functions in buddypress.js? There are some quite annoying things in there like animating the form-fields on click/blur/post which I need to remove ...
0
votes
1answer
131 views

Dropdown parent link not working in mobile

I m working on wordpress with bootstrap. wp menu dropdown parent link not working in mobile. Here is the js:- <script> jQuery(function($) { $('.navbar .dropdown').hover(function() { ...
0
votes
0answers
32 views

Enqueue javascript that inserts custom php widget into jQuery-constructed div

What I need done: The mobile menu on the site (let me know if you want to see the dev site, so I don't get marked as spam for posting the link) is loaded by a script that hides the main menu when the ...
0
votes
0answers
27 views

Wordpress Widget Administration Javascripts do not work?

I have been working on a widget in WP 4.1.1 and cant seem to even get simple javascript to function on the backend unless WP is put into Enable Accessibility Mode. For example in your Form($instance) ...
0
votes
0answers
23 views

mapbox & custom field

I try to implement mapbox for our wordpress project. I'm not sure where to start about this. I try to create advance custom field a repeater which is have a name,short descriptions, url, ...
0
votes
0answers
32 views

How to get attachment id as soon as it is uploaded through media uploader in jquery?

Using jquery, I am trying to get image attachment id of all images requested to upload through media uploader on post edit page or upload.php. Here is what I tried but this works after all images are ...
1
vote
0answers
36 views

Access Customizer widget instance form

On the WordPress admin widgets page there is a known issue with the widget form not being available the first time a widget is added to a widget area. This can be seen in this trac ticket here: ...
0
votes
0answers
59 views

jQuery .find() is not working (right after it DOES work…) in tinymce extension

I am trying ultimately to get a character counter to show up beneath a text area in a form that is generated in a thickbox via jQuery as a TinyMCE extension. Before I work on the code to calculate ...
0
votes
1answer
33 views

Conditional custom redirect

I want to achieve the following: On a post or a page, I can define an optional custom redirect URL (possibly as an Advanced Custom Field) If I view this post/page with a specific added URL parameter ...
0
votes
1answer
48 views

wordpress add_action() issue in ajax call

After a hole day finding solution for the issue, i didn't get what is exactly i am making the mistake. Please give your valuable answer for my issue and humble request not to block if you can't ...
-1
votes
1answer
27 views

how can I make content from a plugin hidden when user is logged in? [duplicate]

I would like to make my social icons at the top of my page disappear when a user logs in to my website... what is the best way to go about this and can you give me all options that are possible ...
-1
votes
1answer
35 views

How can I make content disappear when a user logs in?

I am working in Wordpress, and I would like to make certain elements disappear once a user logs in. How can I do this? I have social icons on my page that I positioned to the center of my menu bar at ...
0
votes
1answer
22 views

How to use only scripts from new theme?

I'm a bit new to WordPress so please forgive me if is a duplicate question. I created new theme with simple file structure: functions.php footer.php header.php index.php style.css js/ I'm trying to ...