A client side scripting language useful for making interactive web sites

learn more… | top users | synonyms

0
votes
0answers
11 views

Injecting bbcode back from popup to post Visual editor

I'm trying to make a Wordpress plugin that can generate media bbcode for wordpress. my popup2wp.php , this is adding a button to edit post media toolbar, that will open a popup window. <?php /* ...
0
votes
0answers
15 views

How to solve this error? I got java script error

This error seen while activating this theme in wordpress.
1
vote
1answer
32 views

How does wp_enqueue_scripts work?

I have a WordPress page for my table tennis club. There is a site with all the current standings and I want to parse a table from it to one of my wordpress pages. I created a dynamic table with php ...
0
votes
2answers
477 views

How to make featured image thumbnails on index page load smoother?

I'm using a theme called Hatch Pro, which is a gallery based theme and the index page displays the posts using the featured image. You can see it here. On slower browser environments, the images ...
-1
votes
0answers
23 views

How to use Stellar.Js jquery plugin in wordpress

I have been searching for a proper jQuery plugin that does parallax effect on almost all devices and it seems like stellar.js is considered one of the best. I have been having trouble implementing it ...
0
votes
1answer
2k views

How to make Isotope and Wordpress work together?

I am trying to make my Wordpress theme using Isotope plugin. http://isotope.metafizzy.co/ So far, I have such a result after doing that was suggested: I believe that Isotope Masonry should not ...
5
votes
3answers
6k views

Add Javascript to WordPress Menu

Is there a way to put javascript in the URL portion of a WordPress menu item? I have a live chat function on my site, and I am supposed to put this code onto the site to make a link to open the live ...
0
votes
1answer
1k views

How to use WP switchEditors.switchto(this) JS function in your own script?

I have a tab switching theme that lets the user choose 3 editing modes when adding new pages (HTML and Visual- these are WP defaults and the new Syntax mode using Code Mirror). I have issues when ...
0
votes
1answer
41 views

How to correctly add Javascript to this PHP 'Page Not Found' Page?

I am attempting to add some javascripts to my "Page Not Found' PHP page, but no matter how many different ways that I try to do it, it breaks something. Here is an example page for this code: http://...
0
votes
1answer
18 views

Post to WordPress using REST API from external site

I am trying to post to WordPress using the REST API. The aim is to have a form that accepts The following information: Title Content ACF Custom Field 1 (possibly repeater field) ACF Custom Field 2 (...
1
vote
3answers
1k views

Load plugin JS in footer

I am trying to load JS files in my theme's to footer.All my custom JS files are being added to WordPress using wp_enqueue_script, but i am unable to find any way which will help me to load them in ...
3
votes
1answer
26 views

Can I add custom attributes while adding inline scripts?

I need to inject some underscore templates into admin screen without modifying the core. The templates look like this: <script type="text/template" id="template-123"> <div class="section ...
1
vote
0answers
21 views

Radio buttons live refresh in the customizer

I've added a new section in the customizer with a radio button setting with three options. The new setting adds a CSS class to the site header. Everything works as expected except the live refresh in ...
-2
votes
0answers
27 views

Override JS using functions.php flle [closed]

Is it possible to write a function in the function.php file that would override the following javascript located in a JS file for a plugin in the plugin in directory so I can put my own values in for ...
2
votes
2answers
52 views

Page Reloads Before AJAX Request Finishes

I am working on a WP plugin, and I need to be able to call a URL (specifically an AJAX function) using a button click, but the page refreshes after clicking it, which I think is preventing the AJAX ...
3
votes
1answer
498 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 ...
0
votes
0answers
77 views

jQuery keyup() on Visual editor

I need to trigger typing in Visual editor and to get current text from it. Is it possible? The next lines are not working: $("visual_editor_selector").keyup(function(){alert("Changed")}); $("...
3
votes
1answer
202 views

Refresh wp.media after ajax call

I'm building a plugin where I add a tab to the media manager and can add stuff from another source. I add the tab with this, which generates a iframe: add_filter('media_upload_tabs', '...
1
vote
2answers
2k views

Is there a way to enable Cross-Origin Resource Sharing for WordPress' ajaxurl?

WordPress already has a default URL for jQuery-WordPress application calls and it's well known as the ajaxurl. However, there are cases wherein one would need to enable Cross-Origin Resource Sharing (...
-4
votes
1answer
18 views

Using Headroom.js with Bootstrap4 in Wordpress

So I'm trying to work on a site on my localhost here and I cant figure out why this won't work in Wordpress. I'm not sure if it's the way the scripts being declared or what as I've got a perfect ...
0
votes
1answer
3k views

Parse wordpress blog data using json api and ajax

I have seen lots of responses to how to extract data from wordpress blog posts using the json api plugin. Many uses $.getJSON, $.ajax, .responseData.feed.entries, success function() etc. What is the ...
-3
votes
0answers
21 views

Gravity Forms Dynamic Population Pre_Submission Hook

I'm not very savvy with Jquery. Can you help me embed it on a single wordpress page so that it can act on my Gravity Form? I have a gravity form with an interactive google map in it. There are two ...
0
votes
1answer
16 views

Call full image url instead of stylsheet directory url in JS for Infinite Scroll Function

Can`t figure out how to call the gif image with a full url (for example: http:// urltoimage .com/test.gif) instead of the stylsheet directory url (obj_test.stylesheet_directory_uri + '/img/ajax-loader....
0
votes
2answers
1k views

Unable to load “wpColorPicker” on theme customize page

Whether I'm using a Wordpress default theme or a custom one, I see the JS error: Uncaught TypeError: Object [object Object] has no method 'wpColorPicker' when I click "Customize" on the theme. I've ...
0
votes
1answer
494 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
529 views

Import HTML code that loads css and javascript into specific page

How can I add the following HTML code into one of my web pages? It's a web form that relies on css and a few java script. Below is the raw HTML code. <head> <link href="css/style.css" ...
1
vote
1answer
24 views

Script Localization doesn't work

I don't get how script localization works in wordpress. I created an associative array in php: $translations = array( 'value1' =>'This is first value', 'value2' =>'This is second ...
0
votes
0answers
42 views

Add javascript in footer

I'm struggling with a little problem .. should I change a thema which provided one of my friends , I 've read a bit ' on the web how wordpress , now I need to include the javascript inside the footer ...
0
votes
0answers
10 views

Is there a media_upload_tabs-similar filter to add tabs to the simple/featured image picker?

There's something I have been wondering about the media_upload_tabs filter that lets you create new image insert sections to the add-media modal in Wordpress editor inserter. Oddly enough it seems it ...
0
votes
1answer
892 views

Make tinymce button have a checkbox that returns a value, instead of true/false

from my understanding the checkbox of the tinymce buttons only return true or false? Is there a way to get a checkbox list? And all the item's values inside the checkbox list that are checked will ...
0
votes
1answer
495 views

AJAX Success Function using JS substr() fails in WP 4.1 vs 4.0

For years I've set up php ajax calls and responses in my plugins like the following, with js error detection conditions as needed like... if( "<e>" == msg.substr(0, 3) ) { do_something(); } ...
1
vote
0answers
16 views

How to configure wordpress to work with Vuejs with SSR and without hashbang

I am new on developing themes with vue.js and I would like to know how do I configure wordpress after removing hashbang from Vue.js router and on html5 history mode? Another question is on this setup ...
1
vote
2answers
192 views

How do I embed a Javascript form directly into a page?

I have a new WP install with the Jupiter Theme installed. I have a contact form created in Sharpspring, a CRM that purports to work perfectly with WP, and automatically generates embed codes for ...
1
vote
2answers
5k views

Google Map iframe in a tab issue

I have embedded a map on the third tab on a page. Page here > 'Itinerary' tab If you go straight to the tab while the page is still loading - it loads the map perfectly. However, if you wait until ...
0
votes
2answers
36 views

Easy popups for wordpress?

I used a theme that had a great function for popup windows - a pop could be created by adding "#iframe" to any urllink ie <a href="http://yahoo.com#iframe">click for popup</a> Is there ...
0
votes
1answer
751 views

Load php function with AJAX on modal window

On a movie information wordpress theme i am developing, i have an href with text "watch trailer" on each cover of all movies. This brings a modal window, and that is working already, but i want to ...
0
votes
0answers
38 views

Highlighting HTML code entered in the text editor

I have a need to have both "rendered" html in a post and "raw" or highlighted html in a Wordpress 4.5.2 post or page. I have solved the former by simply editing in the text editor, placing my code in ...
1
vote
1answer
498 views

How to disable specific plugin in mobile version?

I am using wp-cufon plugin , to enable cufon on my site . But I do not want cufon in mobile version . If there is any way to disable that plugin in mobile version or in just disable specific java ...
0
votes
2answers
20 views

Adding scripts before plugins scripts

I have a site which uses Google's API's for jquery and a fallback for jquery. The problem is that I can't get the fallback to happen immediately after the jquery api attempt. What happens is that the ...
1
vote
2answers
1k views

wordpress site | All-in-one-cufon IE Issue

I have a site where i'm using the All-In-One Cufon (Wordpress Plugin), but having some issues getting it to render properly in IE. The website: [removed] The Problem: It works fine so far in Firefox ...
1
vote
2answers
775 views

WP-Cufon adding extra space in my paragraphs in Firefox and Chrome

I'm using WP-Cufon for font replacements. It's adding extra cufon canvas out side of p tags in my page, which is seriously messing up my layout. The URl is this: http://doscasas.com.mx/dev/. But it ...
1
vote
1answer
84 views

wp_enqueue JavaScript in child-theme (ReferenceError) using Search & Go

This is my first post here, so I hope I pasted the code well and you'll stand by interpreting the problem. I have deregistered and dequeued two scripts in my childtheme. When removing and adding ...
0
votes
0answers
17 views

Setting up jQuery noConflict to be used only for plugin?

I'm a little bit lost, I'm trying to make a plugin only use this specific version of jQuery so it doesn't conflict with other versions that are on the site. This is what I have tried and I thought ...
0
votes
1answer
57 views

WP Rest API - How to get featured image

I'm very new to this API, in fact I've only spent couple hours on it so far. I've done my research but cannot find anything about it... The issue is, I can't seem to get the featured image of a post. ...
0
votes
1answer
22 views

WordPress wp_enqueue_script only adds text to top of page source

All I'm trying to do is add some javascript to a WordPress theme I'm making. My functions.php file looks like this: function my_scripts() { wp_enqueue_script( 'jquery' ); wp_register_script(...
0
votes
2answers
640 views

How to add a onclick attribute to a list of checkboxes?

I have this array for checkbox: array( 'name' => __('Latest Product',''), 'desc' => __('Select if you want to display latest product',''), 'id' => $prefix . 'checkbox'...
0
votes
1answer
42 views

Where to find the html for Wordpress site? [closed]

Where can I find the HTML for a Wordpress site? I'm using the "X" child theme. I found a tutorial explaining how to achieve an effect that I want and it says that "All I need is an HTML markup and to ...
0
votes
1answer
43 views

Converting HTML to Wordpress theme: integrating pages function and using its text editor, conditional enqueuing

Recently I attempted to convert my static HTML to a Wordpress theme but to no avail. I was able to understand how to separate my code for my header, content, and footer, and I integrated the header ...
0
votes
1answer
3k views

Ajax page load without reload

I am working on a script to load my page without refreshing. It is working as I want it except for one thing. The test site I have up is http://dev.dog-company.com . Only home About us and FAQ will ...
0
votes
1answer
2k views

Dropdown parent link not working in mobile

I'm working on WordPress with Bootstrap. The WP Menu dropdown parent link is not working on a mobile device. Here is the JavaSript: <script> jQuery(function ($) { $('.navbar ....