A client side scripting language useful for making interactive web sites

learn more… | top users | synonyms

0
votes
1answer
10 views

Showing a link with Javascript based on log-in status

<?php if ( is_user_logged_in() ) { echo ''; } else { echo '<a onclick="ppOpen('#login_panel', '800',1)" href=\"javascript:\">Entrar</a>'; } ?> Hello, I'm trying to make this work ...
0
votes
0answers
8 views

Avada shortcode [on hold]

I would like to copy the carousel effect of this template> www.awerest.com/demo/myway/light/ > (exactly with the same icon and effect of the words ): see here > ...
0
votes
0answers
10 views

Add Text in Home page of Wordpress Tempelate [on hold]

How we can add text in homepage of wordpress tempelate without code???
0
votes
0answers
14 views

Using Ajax to autocomplete a form with data from db

I'm struggling to get the following: User fills out personal number Other input gets autocompleted with data from database As I have never made a plugin, help is greatly appreciated, my database ...
0
votes
0answers
24 views

AJAX filter posts on click based on category

This is my first foray into AJAX, I've been splicing bits of code from various tutorials which probably hasn't helped. I have a list of categories on my homepage (index.php) and a list of the most ...
0
votes
2answers
35 views

How to load JS for specific screen size using wp_enqueue_script?

I need a option so that when I am adding some script using wp_enqueue_script it should load for specific screen size. Like when the screen size will be below 768px the script will not load. I am ...
0
votes
0answers
24 views

How to auto open pdf file in window in adobe reader using javascript? [closed]

How can be auto open a file in window's or mac's adobe reader after download using Javascript or jQuery. In real case : when we click on download link file is downloaded in window and we need ...
0
votes
1answer
35 views

How to get values from wordpress listings and use them in javascript array?

I'm trying to get values (latitude, longitude and an image) from the WordPress database and put it into a javascript array. Unfortunately I'm a newbie at Javascript and PHP! Here is the code I have ...
0
votes
1answer
19 views

prevent HTML output if custom field is empty [closed]

I am using the ACF plugin for custom fields. I am using this to add a second content area to my website. I have a peice of JS that says if this div is present then add a class to the page-content ...
0
votes
2answers
42 views

How to set up php,javascript and css to allow for our finished product to be displayed within a page?

hey wordpress experts, We have coded a table using php, javascript and css which pulls up information from a text file and displays it in the browser. We have everything working as desired when we ...
0
votes
0answers
12 views

media uploader filter library so see only images without parent post

I am using this code to enable users to upload images from front end. I would need to filter the library tab to only how images that do not have post_parent set. Any way to do that? Code below: ...
-1
votes
0answers
38 views

Download Youtube video link [closed]

I have another script which allow me to download YouTube video (by giving video id). I want to reuse it on WordPress video posts to put download link. The other script use this link to direct ...
0
votes
0answers
25 views

Infinite scroll on sidebar widget

I am trying to add an infinite scroll functionality to a website i am building, but i want to add it to a sidebar widget. I have a widget that shows a list of recent posts, and i would like to add an ...
1
vote
2answers
52 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
0answers
68 views

Flexslider not working for my custom theme WordPress

I add flexslider to my theme homepage http://templategraphy.com/wp-demo/bluto/ but it didn'not show on my homepage Here is the order of js i placed in function.php function theme_name_scripts() { ...
0
votes
0answers
24 views

How to open particular featured image clicking on desired post using javascript in wordpress?

I have created a custom post type "gallery" and created seven post in it. Since I am using dynamic featured image plugin of wordpress so I assigned two featured images to each post. Then I ...
0
votes
0answers
15 views

Page load twice when form submit [migrated]

I have this code which retrieve data from the visitor and then sending the data to php code through a hidden inputs. I send all this data on page load so the page load twice(the normal loading then ...
0
votes
0answers
222 views

Uncaught TypeError: undefined is not a function (shortcode-box)

I have a Wordpress theme that the author is no longer maintaining, and has stopped functioning properly with the update to Wordpress 3.x. Over the past few months, I have been working to resolve the ...
0
votes
1answer
29 views

How to install cool javascript feature in Wordpress?

Im trying to install this menu http://tympanus.net/codrops/2013/08/13/multi-level-push-menu/ on my Wordpress site.However the javascript can not be loaded.Here is my murkup I used the menu as ...
0
votes
0answers
12 views

How to stop writing content twice on Wordpress using ajax?

I've been using javascript and ajax to do some post request inside a page and everything seems to work fine. Later on when content got more complicated I stop writing HTML code with javascript and I ...
2
votes
1answer
53 views

How to prevent loading of all plugin's resources?

Wordpress is loading all client resources of all plugins, not just the plugin of interest. It may make sense to load jqery globally but it makes no sense to load all other plugin's Javascript in a ...
1
vote
1answer
85 views

How to get a jQuery script to run on a page?

I am having a hard time figuring out how to get a jQuery script to run on a Wordpress page of mine the "correct" way. I have followed this article and implemented what the first answer says to do. ...
0
votes
1answer
89 views

Using Foundation 5 in WordPress Administration Area

I am attempting to implement Zurb's Foundation 5 in a development to enable me to utilize its functionality to create better page UIs within the wp-admin. However, for some reason Foundation's JS is ...
0
votes
0answers
43 views

Add async script

I am working on a plugin that has to inject a script on pages (something like RefTagger), which would be easy using wp_enqueue_script, but there are two reasons I cannot do that: the script tag has to ...
0
votes
1answer
121 views

implementing a jQuery “click to expand” link in Wordpress [closed]

Novice coder - apologies for any stupid comments I've been trying to make a show more button on one of the div s on my Wordpress blog page. I've looked at a number of tutorials that all seem to agree ...
1
vote
0answers
52 views

Add tinymce buttons to caption textarea in media uploader

I want to add some basic tinymce buttons ( Bold, italic, underline ) to caption textarea in media uploader in WordPress. (Shown in attached image) I dig a little bit into wordpress core in media.php ...
-2
votes
2answers
60 views

Set variable in javascript and using in my shortcode

my script is function($) { var google_map_address = $('#address').text(); $(function () { $('#gmap').gmap3({ marker: { address: google_map_address }, map: { options: { ...
0
votes
0answers
24 views

What is the right way to include my Ajax script in wordpress [duplicate]

I've searched around for a solution to my issue to no avail. So here it is: I have created custom meta fields in the user section within the admin area. There are two fields in total, both select ...
0
votes
1answer
60 views

Ajax - Call to undefined function get_option()

So I've been working in Wordpress lately with Ajax and I managed to get some stock data into my site from my database. However, I am now trying to use Ajax to load Wordpress posts into my left ...
1
vote
1answer
29 views

Backend option to include a javascript file on specific pages?

I am working on a template that my coworkers will be using to populate content. On some of the pages there will be a slider or multiple sliders but on other pages there won't be any. Because of this, ...
0
votes
1answer
41 views

How do I convince this button to do something when it is clicked?

I'm trying to use ajax to give me an alert when I click a button. Eventually I want it to do some form validation, but for now I would be happy just to see the alert. I've read the docs and about a ...
0
votes
1answer
109 views

Replace link with form to pass variables to javascript / ajax

I'm sending a single variable to javascript/ajax via a link, but want to send via a form so I can pass user input as well. (It's for a plugin that interfaces with an Echonest Remix python script to ...
0
votes
1answer
51 views

Using WP functions inside javascript

I'm trying to use PHP variables inside a javascript function. What's a proper way to use a WP function like get_current_user_id() inside a script that get's enqueued via wp_enqueue_script? Right now I ...
2
votes
1answer
139 views

Wordpress Visual Editor Stripping HTML Changes

When I use the WordPress HTML editor to add icomoon icons like this: <span class="icon-shield"></span> and then switch to the visual editor and then back to the HTML editor, the icons ...
0
votes
0answers
13 views

wp_localize_script() dont parse values

I try to parse php values to js file using wp_localize_script() wp_enqueue_script( 'countdown_js', plugin_dir_path( __FILE__ ) . 'js/countdown.js', array(), '1.0.0', true ); $dataToBePassed = ...
0
votes
0answers
26 views

Infinite scroll wont work on mobile browsers. Works on non mobile systems

I implemented infinite scroll on my WordPress blog using the following script: <script type="text/javascript"> var abc=66;//what is abc doing? $(window).scroll(function () { ...
0
votes
0answers
37 views

User Answerable Multiple-Choice Question in Post

I am creating a plugin that adds multiple choice questions to WordPress. I wish for several to be displayed in a single post in a manner such that users may select an answer and receive instant ...
0
votes
1answer
62 views

wpColorPicker: How update colors on input value update?

Setup: An input field that has attached a wpColorPicker instance. An external event that changes the input value color. Issues: On value change the color shown by the colorpicker doesn't get ...
0
votes
0answers
29 views

Wordpress media uploader button is not working

I'm developing my own plugin. for that i need to upload logo images. since i'm a newbie in wordpress i searched so many tutorials. the code i used is pasted below. the problem is when i clicks on the ...
0
votes
0answers
14 views

Multiple Menu Selections to compile data on new page

Need to create a menu box (vertical stack of 4 selections) on a page, which then calls from either a database or CSV file, final combination of items required as follows: Selection 1: >MenuItem< ...
0
votes
0answers
40 views

Can't get Geotrust seal to show up

I have purchased and installed a Geotrust certificate on my website. The certificate is running just fine. I would like to display the seal, but I can't get it to show up. Geotrust tells you to ...
0
votes
1answer
203 views

TypeError: window.tinyMCE.execInstanceCommand is not a function

I can't add any shortcode in my wordpress editor. it shows - TypeError: window.tinyMCE.execInstanceCommand is not a function window.tinyMCE.execInstanceCommand(id, 'mceInsertContent', false, ...
0
votes
0answers
39 views

Server-side processing of AJAX login

I'm using AJAX to login users on my website to avoid the need for a page refresh when they get their username or password wrong. Everything is done over SSL. My server-side processing: function ...
0
votes
2answers
83 views

How do I use this javascript correct with wordpress?

Im using a javascript/html5 script to highlight images black and white during no mouse hover, and then back to color on hover. It sorta works, although, I have to reload my page 2-3 times before it ...
0
votes
0answers
43 views

URLs ending with number higher than 2147483647 redirects to to domain.com/2147483647

I've got a javascript implented on my Wordpress site with the purpose to the substring of the URL and if it matches some criteria, it'll load a specific piece of content. So, if you input this URL ...
0
votes
3answers
100 views

Loading multiple post content in FancyBox

I have a custom post type being output as a list. I'm trying to output some of the inline content in each li via Fancybox. All works so far except it only shows the first li's content. I understand ...
5
votes
1answer
136 views

Any alternate TinyMCE4 themes / subthemes?

TinyMCE4 in WordPress 3.9 has some cool changes, but it seems to have only one "theme" included. Is there any way to make a sub-theme of the theme defined by CSS, and theme.js in ...
3
votes
1answer
42 views

Documentation for IDE's

I'm using IntelliJ but this question could apply to PhpStorm, Visual Studio, etc... Is there a good way to make the IDE aware of the Javascript functions that WordPress provides? Are there any ...
0
votes
1answer
43 views

Why this plugin is not working?

I am testing jQuery in my wordpress plugin. Two files 1. main_plugin.php 2. js_plugin.js (Both in the same directory HelloWorld). CODE: PHP FILE: <?php /* Plugin Name: jQuery Test Plugin Plugin ...
1
vote
0answers
42 views

Resetting admin post form on JS validation fail

I've got a custom plugin with a metabox and dynamic form (the user can ask for more elements of the form), with jQuery Validation plugin working great. The problem is when the validation comes back ...