A client side scripting language useful for making interactive web sites

learn more… | top users | synonyms

0
votes
1answer
18 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
0answers
11 views

Tracking comment form submission with Segment.io plugin [on hold]

I am using the Segment.io plugin for analytics on my site. Specifically I am trying to track when a user comments on a post using the analytics.trackForm function. See code below... <script> ...
0
votes
3answers
28 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
0answers
6 views

Adding a third party SDK for Kitlocate into wordpress

Hi guys so I have built a website with wordpress and I am in the process of turning it into an App for both android and IOS using AppPresser but before I do this I need to integrate the SDK into ...
0
votes
0answers
16 views

Mute Button on Youtube Video Revolution Slider [on hold]

I want to place a Mute/Unmute button on Youtube based Revolution Slider. So far I have done: Created a slide with full width youtube video. Placed a mute button (icon) as a new layer Placed an ...
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
9 views

Featured Image a Background with Blog Post Info via JavaScript Loop

I want to create a section on a website with a featured image as the background. Over the image I will display the blog title, author, comments (if any) and a "Read More" link. I want to use an array ...
0
votes
0answers
23 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
36 views

Wordpress pages crash [on hold]

I am facing a problem with a wordpress website i build: www.fixiebrothers.nl When you click around over the pages, sometimes it crashes and doesn't load any code at all. So it give the following code ...
0
votes
1answer
22 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 ...
-1
votes
0answers
16 views

How to install jshint on windows? [closed]

I'm trying to install Sublimelinter-jshint, to make it work I have to install Node.js & jshint on windows. I have installed Node.js but I don't know how to install jshint. It only show the way ...
0
votes
0answers
22 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
56 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
116 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
27 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
11 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
11 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
32 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
12 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 ...
-1
votes
0answers
44 views

How to insert Javascript tracking pixel on specific pages

I have 3 different tracking pixels, each pixel with some different Javascript code. Im looking to insert these pixels on 3 specific pages within the <body> tag' Pixel 1 = Frontpage Pixel 2 = ...
0
votes
1answer
74 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() { ...
-1
votes
0answers
13 views

How to undo Images of Regenerate thumbnails hard coded

I have installed regenerate thumbnails and after applying this all images are not good to display it have hard coded the size .. how can I remove or undo the hard coded sizes which is generated by ...
0
votes
0answers
21 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
25 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
18 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
27 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
32 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
46 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
30 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
39 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
24 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
33 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 ...
0
votes
0answers
57 views

Retrieve customizer value using ajax or customizer api and print the value in theme

one of my clients have Branches. one located in new york another in los angeles and etc... in the live site we print new york phone and address(from the customizer) as default. what i need is to ...
0
votes
2answers
24 views

Adding javascript blocks to a single file and adding it to the header

I don't know how to do it, but I have a few js code blocks in my sites header like the StatCounter tracking code, facebook like button js code, etc. Now the thing is that I want to combine all the ...
0
votes
0answers
32 views

admin-ajax.php is slow [duplicate]

On this site, it usually takes around 5-7 seconds for admin-ajax.php to process and return the response for when the user clicks on the plus icon on project hover. I'm not sure if this is a WordPress ...
0
votes
0answers
33 views

Improve my timetable's code

I'm working on a wordpress theme and creating a time table who will be easy to complete by users. In the back-office, there are a checkbox for each days : <input id="checkbox1" ...
1
vote
1answer
60 views

How to retrieve a value from an input field in a media view template

I've created a media view template with two input fields (width and height) and I was wondering how to retrieve the values entered in them in a media controller o view. PHP: function ...
0
votes
1answer
494 views

Implementing Isomorphic JavaScript (React JS) in Wordpress?

I'm about to start with a new project and would like to incorporate React as I want to learn more about it and this specific project would be perfect to get started as it's not that time sensitive and ...
0
votes
0answers
23 views

Get custom post type slugs in javascript in header

I am using the following javascript to show and hide various divs on hover: <script type="text/javascript" language="JavaScript"> function HideContent(d) { ...
0
votes
3answers
120 views

Dequeue script to prevent javascript event conflict on wordpress child theme

I've built a child theme of Divi Theme to use with Buddypress. So far so good, except for a script conflict on commenting buttons. The theme load a javascript (js/custom.js at 2642:2662) with the ...
0
votes
0answers
19 views

Locating and accessing the main js file

I'm hoping to find out exactly where this main.js file is located in wordpress and how to access it? "jQuery( document ).ready( function()"
0
votes
1answer
42 views

Handling AJAX with custom taxonomy custom fields on add

I wrote some extra fields for my custom taxonomy. I added the form fields to the add form. I got it to save by handling the appropriate values in $_POST. In 4.1.x, the add form is Ajax-ified. How can ...
0
votes
0answers
24 views

Change php via js, is it possible?

i want to change my headers dynamically ( not in WP admin dashboard ) <div id="Header_wrapper"> <?php if( header_style == 'header-creative' ) get_template_part( 'includes/header', ...
1
vote
1answer
94 views

Switch to the library tab in the media uploader

I'm developing a plugin that adds a tab to the media uploader to add external videos to the media library via oembed. Everything works as expected but I need to switch to the library tab after adding ...
0
votes
0answers
25 views

Theme Customiser not live previewing changes on pseudo elements

I've been working with the Theme Customiser API lately and found that pseudo elements are not live updating using the previewer. In my project I have an image containing a transparent overlay using ...
0
votes
1answer
349 views

Move all the JS files to the bottom|footer, the right way

In order to speedup my site load and prevent scripts from render the page I'm trying to move all the possible scripts (meaning JS files) from head to footer. After read and do some research I made ...
0
votes
0answers
292 views

500 (Internal Server Error) of external php file

I am currently using WP Web Scraper version 3.2. Once I insert the shortcode or template tag (php code) directly into my page, the plugin works perfectly fine and the values appear. I decided to place ...
0
votes
0answers
26 views

None of the JavaScript works when using wp_editor

I'm trying to create a front-end editor for my Wordpress theme using wp_editor. While it outputs the editor, there's loads missing from it. There's no title, no submit button and none of the JS ...