A client side scripting language useful for making interactive web sites

learn more… | top users | synonyms

0
votes
0answers
27 views

wp_enqueue_scripts doesn't work for template pages

In my child theme's functions.php I wrote : function add_js() { echo "path is : ".get_stylesheet_directory_uri().'/js/script.js'; wp_enqueue_script( 'script', ...
0
votes
0answers
15 views

Importing External JS to Wordpress

I want to place this code on my WordPress site: http://codepen.io/FWeinb/pen/hlEke. The HTML and CSS codes can be placed without any problem. But I'm getting stuck at placing the JavaScript code. I've ...
0
votes
0answers
8 views

Widget not notifying customizer of changed value when updated via Javascript

I'm developing a wordpress theme that relies heavily on widgets for flexibility. I'd like to use the wp media javascript library to add images to some of these widgets instead of just having a text ...
0
votes
0answers
39 views

Wrap Javascript embeds like Twitter and Instagram?

Is there a way to wrap Javascript embeds like Twitter and Instagram that don't use the iframe/embed type embedding? I am able to do this when those embeds (Twitter and Instagram) are using oEmbed, ...
0
votes
0answers
16 views

Grabbing post content in real time with javascript

I am working on a plugin that adds a metabox on the create/edit post page, in that metabox I want a dropdown with all the anchor texts for the a tags used in the post. I haven't done the parser to ...
0
votes
0answers
57 views

custom jQuery on a GravityForm - it runs when submitting the form (and it shouldn't)

I have a custom jQuery function I wrote for one of my forms, which filters Dropdown B based on what the user chose in Dropdown A. It works just fine, except for when someone tries to submit the ...
0
votes
0answers
9 views

Modify the forms control in the theme customizer using jquery or js

i'm trying to modify the input boxes which i created using $wp_customize from the theme customizer, for example if a select box from the theme customzer changes of value, the other select boxes hide. ...
0
votes
0answers
32 views

WordPress & iDangerous Swiper

Sorry to bother you with whats probably an easy thing: I came across a nice carousel created by iDangerous that I would like to implement into a WP theme. Do you guys have any suggestions on how to ...
0
votes
0answers
60 views

How to include jQuery and JavaScript code in metabox?

I am trying to include jQuery and JavaScript code in a metabox but it is not working. Can anyone give a suggestion how I can achieve this? function prefix_enqueue_scripts3() { ...
0
votes
0answers
50 views

add attachment-filters on custom modal-media insert

how can I do to have the attachment-filters menu in my upload window? my upload wordpress deafult upload console.log("enqueque on metabox.php - media3.js"); openMedia = { data: false, v: ...
0
votes
0answers
73 views

Create new product with woocommerce REST API with javascript (clientside)?

Is it possible to create new products in woocommerce using its API with javascript from clientside? I tried this for getting all products: endpoint: ...
0
votes
0answers
21 views

CSS and JS includes are staying HTTP after changing site to HTTPS

i have setup an SSL cert for my domain and its working correctly for everything other than wordpress. All other PHP apps are working fine, but i cant seem to get wordpress to include any CSS or JS ...
0
votes
0answers
23 views

Refresh the Customizers preview after editing fields

I'm using ACF fields on a few custom widgets. While using the Customizer to edit fields, they will save on change but the preview will not refresh. Calling wp.customize.previewer.refresh() will ...
0
votes
0answers
40 views

Onclick Save Text In Input Field

Currently, I have a front-end form on my client's wordpress site that allows users to create a post. I'm using the pods plugin to create cpt, custom fields, forms, etc. I have several input fields in ...
0
votes
0answers
21 views

Connecting a wordpress site to an AngularJS APP

Currently I have a application that needs a blogging system added. The application is built with an AngularJS front-end and a python/Django back end. I wanted to use wordpress as the blogging system ...
0
votes
0answers
18 views

media image not showing after adding ajax google api

I have added a script in my header.php and ajax file <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script> <script>....</script> But due ...
0
votes
0answers
33 views

Customizer Api: Load settings and controls from dynamically generated array

I have a front_page setting like so: $wp_customize->add_section( 'front_page', array( 'title' => __( 'Front Page' ), 'priority' => 120, ) ); I am trying to allow the user to do ...
0
votes
0answers
40 views

Can't change javascript files

I've deleted a javascript file from my server, but it appears to still be there when making requests to the web server. I made a GET request with cUrl to the specific .js file to make sure there ...
0
votes
0answers
46 views

Extending TinyMCE to Work with Medium Editor

I'm trying to extend tinyMCE. What i'm trying to achieve is to use this Medium Editor extend tinyMCE functionality as buttons within the backend Page / Post / Custom Post Type. This is similar to ...
0
votes
0answers
32 views

How to fill up in tags?

i have some problem to fill up the data Here is my code $.getJSON( url + input + "/keywords?" + apikey, function(tmdbdata) { $.each(tmdbdata, function(key, val) { if(key == "keywords"){ ...
0
votes
0answers
15 views

How to hide a Control in the Customizer?

I know contextual controls hide if for example the user navigates from the viewer certain pages. But how can I achieve hiding a control under this scenario: There is a type Select Control with an ...
0
votes
0answers
40 views

how to make video autoplay on website in mobile using revolution slider

I understand that the video can't be played on mobile devices because of the ruling of the mobile data and other requirement. i also read comments on other articles on support. but i read some ...
0
votes
0answers
31 views

how to display term name angularjs

I've recently learned about angularjs and I am trying to display a term associated with a specific custom taxonomy. So far this is what I've tried in my partials file - <div ng-repeat="post in ...
0
votes
0answers
27 views

Javascript attr href not appending parameters on WordPress site

I have this exact code set up and running on a regular HTML/PHP site but when I tried setting it up in WordPress, it doesn't work. The code itself works, the Javascript is present when I view the ...
0
votes
0answers
44 views

Enable/disable code in functions.php with options

Is there a way to enable or disable lines of code in a themes functions.php file? Basically I would like to have a page in the admin panel that lists "modules" or separate php files and has the ...
0
votes
0answers
46 views

WP Disclaimer Popup Plugin Tweak

I am using WP Disclaimer PopUp by Art Armstrong and it is really perfect for what I'm doing. However I need one small simple tweak. I tried to hire him to do it but didn't get an answer. Whoever ...
0
votes
0answers
26 views

Javascript in WordPress Navigation - mobile menu

I added a Live Chat link to my WordPress navigation menu. I followed the Ideal solution #2 below which works great on the desktop, but not on the mobile menu. It doesn't do anything on mobile. Any ...
0
votes
0answers
11 views

Can't see audio when I acces with ajax

I have created an ajax portfolio. It works fine, but when I upload an audio, this is not display. If I acces to the post via my blog page the audio is there. I inspect this file and I discover a ...
0
votes
0answers
14 views

Run script when media uploader is opened in post

I've added additional fields to attachment fields so that the user can select a photographer either from a dropdown that has a list of photographers, or you can put your own photographer. For that ...
0
votes
0answers
26 views

How to how to open the add media dialogue it in a certain state / tab

I created a customized wp_view similar to embed (see wp-includes/js/mce-view.js, l. 868). I also have my own tab in the "add media" dialog. Naturally i want the edit button of my wp_view opening the ...
0
votes
0answers
20 views

How to reference tinymce body in my script

I want to add some custom behaviour to my tinymce body, but I can't reference it in my script. this is how I load my scripts inside my wp plugin. $this->loader->add_filter( ...
0
votes
0answers
8 views

Defer or async javascript stops pingbacks and trackbacks

I'm using the following code to defer all js-files on my site but have struggle with pingbacks and trackbacks - the didn't work anymore. It seems that wordpress is using some javascript-stuff to ...
0
votes
0answers
27 views

add inline javascript like wp_add_inline_style

How can I add an inline js right after my selected enqueued file? like we can do with inline_style I want to add noconflict to an external jquery file (through cdn)
0
votes
0answers
39 views

Call/link wordpress category with jquery/isotope classes

I am working on the portfolio section of my web, and these codes i have in filter.js script (in wp-includes/js folder) jQuery(document).ready(function(){ ...
0
votes
0answers
17 views

js-methods with prefix specified

I have wordpress plugin with js-file attached for js functions. I want to escape possible error of having js functions with the same name as js functions pf other developers so I use some prefix like ...
0
votes
0answers
45 views

Isotope filtering with wordpress by categories

I am using the isotope by metafizzy script, need to use it on projects page of my website, it's working fine but what i want to do is filtering by custom post categories (portfolio categories), here's ...
0
votes
0answers
83 views

Javascript file doesn't load

I have a mysterious problem - the script file isn't loaded. The same code works on a test server. But when we uploaded it to the live server and looking at the browser console at "sources", it didn't ...
0
votes
0answers
32 views

Use data-id for wordpress posts (individually)

I get the filters script implemented on my wordpress web by some developer, who's not good in wordpress functions but he did implement the filter script on web. That script is working on projects ...
0
votes
0answers
30 views

Getting Menu Items Parameters in Javascript Loop

I'm using the Menu Image Plugin - https://wordpress.org/plugins/menu-image/ It adds a image to the menu I need to extract or output the menu items ie Name, Menu-Url, Menu-image into javascript loop, ...
0
votes
0answers
15 views

Customize navigation menu in the Twenty Fifteen theme

Is it possible to change the behavior of the navigation menu in the Twenty Fifteen theme so when a user clicks a menu item to open a submenu all the other already opened submenus are closed? I'm ...
0
votes
0answers
22 views

Detect when media select input field has been populated in a plugin

I have some code in a little plugin I am trying to make that allows a user to select an image to use : <input type="text" name="thumbnail_adr" id="thumbnail_adr" class="regular-text" ...
0
votes
0answers
17 views

How to limit each front-end user to view just his own uploaded files on Amazon S3?

In my Wordpress website Users can upload video files directly to a Amazon S3 bucket, all of them use the SAME bucket for their uploads. After the upload is done each user should be able to view/delete ...
0
votes
0answers
16 views

Wordpress Customizer - reload controls

I have several controls setup, one of which is a custom multi-select field which allows you to select several different options, based on these selected options I tailor make other sections/controls. ...
0
votes
0answers
64 views

Trying to update User Meta with Ajax

I am trying to make a plugin to record the users browser based location as user meta data stored as Latitude and Longitude. This current version is trying to make user meta via form, but ultimately I ...
0
votes
0answers
16 views

multiple_loop of filterable taxonomy_portfolio for CPT

first sorry for my "school-level" english and for possible mistakes (it's the first time on this forum) I have a CPT "corso", I have more taxonomy for this CPT (argomento1, argomento2, ...) and I've ...
0
votes
0answers
20 views

Can anybody explain why this js value is set at 10 in this media library source?

I'm using Mike Jolly's media uploader plugin on one of my Wordpress plugins which opens the media library as a shortened popup. Generally it works, but line 4 of the main code includes the following ...
0
votes
0answers
35 views

Call attributes from shortcode function to a JavaScript function?

How do I call attributes from shortcode function to a JavaScript function? extract(shortcode_atts( array( 'xyz' => '' ), $atts )); I want to call xyz's value in ...
0
votes
0answers
22 views

Accessing tags from the front end

I would like to access the tags that are assigned to a post from the front end (JS). Is there a hook / object I can tap for these?
0
votes
0answers
22 views

Widget Admin page and Javascript enqueuing

I am authoring a WP Widget plugin, and am having problems enqueuing javascript onto the Widget Admin page. The Javascript works when the page is first loaded or refreshed, but when you click "Save" on ...
0
votes
0answers
130 views

Get URL of current featured image with JS in edit post view

Is it possible, somehow, to fetch the URL of the currently set featured image when you're in the edit post view? So far I've looked at fetching via jQuery such as: var url = ...