A client side scripting language useful for making interactive web sites
1
vote
1answer
30 views
JavaScript && operator in visual editor
I am used to of adding javascript/jquery code in posts via visual editor but it seems I never used && operator cause wordpress is altering && operator in &. Here is a link where I ...
0
votes
0answers
12 views
One page site (returning from google) + history manipulation
I am making a one page site using wordpress.
The one page has all the menu pages linked into one, but there will be arbitary pages (landing pages) for subcategories and stuff at the moment.
I have ...
0
votes
1answer
20 views
Replacing WordPress Icons (menu,icons32, etc)?
I want to replace wordpress admin sprites. I recreated the images and looked answrs for icon replacement using jquery and simply with CSS BUT what about ones link icons32-2x.png where I can't find the ...
0
votes
1answer
21 views
Covert Wordpress Blogname into JQuery
Here is the blogname in php <?php $blog_title = get_bloginfo('name'); ?>
I want to convert it to javascript. The file I want the blog name is in a .js file so I cant create the variable with ...
1
vote
1answer
30 views
Display the number of unseen comments on a page since the user last visit
The community is private and it has several pages /wordpress /design /etc . When users go to those pages the only thing they can do is to comment.
Now, what I am trying to do, Idk if possible, but if ...
-1
votes
0answers
15 views
thickbox.js Endless loading gif. Why is thickboxL10n not defined?
Below is the line that throws the error. I am using thickbox.js
jQuery("#TB_window").append("" + ""+caption+"" + TB_imageCount + TB_PrevHTML + TB_NextHTML + "");
0
votes
0answers
15 views
Lightbox Post Pop-up on homepage [duplicate]
I've been working on sampression lite theme and what I want to achieve is when a post' thumbnail/read more link on homepage is clicked, a modal will pop-up ( similar to pinterest and this wp theme ...
0
votes
0answers
11 views
How to utilize theme customizer live preview in this situation?
Short version: I am using the theme customizer in my theme and javascript for the live preview. I am not sure how to implement the javascript for php(as seen in code excerpt).
I am creating a theme ...
0
votes
1answer
18 views
Loaded JavaScript file not showing [duplicate]
I'm working a custom WordPress site, and I've loaded all the required JavaScript file:
wp_enqueue_script('easing', get_stylesheet_directory_uri() .'/js/diapo/jquery.easing.1.3.js');
...
0
votes
0answers
34 views
how to retrieve subcategory related to category in edit page from view page by using javascript
I am doing a basic product page by using JavaScript,php and html. I retrieve the category related subcategory drop down list from view page .but my subcategory is not change according my category .I ...
-1
votes
0answers
21 views
Hyphens are causing a blank result
I'm having issues with hyphens in my slugs from a tutorial I'm trying to go through... http://wp.tutsplus.com/tutorials/theme-development/create-a-quicksand-portfolio-with-wordpress/ and I'm having a ...
0
votes
0answers
10 views
PressThis works inconsistently in Safari
... and this has been true for several years and several OS X versions, just haven't found any answer.
On the other hand, my Tumblr bookmarklet has worked 100%, through all this. Or maybe they're ...
0
votes
0answers
19 views
videopress videos are not displayed when loading the content with ajax in a lightbox
I'm using videopress and I'm adding the videos into posts with the videopress shortcode, and when I visit the post I can see the videos and play them, but the problem is when loading the post with ...
1
vote
2answers
84 views
Load multiple Javascript scripts
I have three Javascript script that I need to load -
imagesLoaded.js
lazyload-1.8.4.js
and cd.js
cd.js contains my functions that use imagesLoaded.js and lazyload-1.8.4.js.
Do load them ...
1
vote
1answer
40 views
How to deal with the confliction between PHP-Markdown and MathJax?
I use PHP-Markdown plugin in WordPress. In order to show the formula beautifully, I add some code to use MathJax.
Like this:
<script type="text/javascript" ...
0
votes
0answers
3 views
Having a hard time getting Javascript to work in a post. Please help [migrated]
Disclaimer: I know nothing about javascript.
I'm trying to get this script to work on the test post. The goal is to have the links below the video jump to certain spots in the video. It works fine in ...
0
votes
1answer
26 views
website script stopped working
i have 2 copies of my wordpress website one online and the other offline the code now is working on offline but on the online some scripts stopped appeared when i used contact 7 plugin but i fixed it ...
1
vote
0answers
57 views
Single page site with history.js
I'm developing a single page site that shows each page on the front page, like so:
*-----------------*
| Home |
...
0
votes
0answers
25 views
get_option include <br /> in my adsense
As title said I saved in wp-options -> option_value a adsense code but when I try to display to website in the code I get some
"<script type=\"text/javascript\"><!--<br ...
0
votes
1answer
135 views
Ajax Validation for reCaptcha
Background
I have a registration form that validates with AJAX using jQuery Validation Engine. The form was created using Theme My Login and contains reCaptcha which I implemented using WP-reCAPTCHA.
...
0
votes
1answer
35 views
How to enqueue some javascript source once per page
I need my plugin to generate the following - once per page:
<script type="text/javascript" src="https://<ritc url for js file>"></script>
<script type="text/javascript">
...
0
votes
1answer
30 views
Screen Options JavaScript Code
I want to know, what script drives the "screen options" animation toggle in WordPress.
I'm referring to the options menu that slides out when the admin clicks the "Screen Options" link near the ...
1
vote
2answers
48 views
How do I only load js on the post-new.php and post.php pages in admin?
I have some script that is loading in the admin. I only need it to load on the new post and edit posts screens.
What is the best way to do this?
0
votes
4answers
43 views
contact 7 plugin stops some pages from working properly
I started to use contact 7 plugin and I'm having a slider and some effects on other images when i activate the plugin they stop working this is the web page
http://www.digitalways.com.sa/
I ...
0
votes
1answer
31 views
Plugins not showing up for custom template
I'm customizing the index.php page. I've customized my header.php and footer.php and created the styles for both things.
My main index.php page has:
<?php
/*
Template Name: Main
*/
?>
...
0
votes
1answer
37 views
Linking wp_enqueue can't find the javascript file (adds “?ver=x.x.x” to the src)
So I'm trying to link in a javascript file the right way, by using this:
--functions.php--
function custom_scripts() {
wp_register_script('myscript','/backdrop.js',array('jquery'));
...
0
votes
0answers
32 views
Created custom control from theme customizer, where should I add code it will control?
I have created a custom control for the theme customizer which is a simple button and label. I am going to be using it as a theme reset button that will clear the theme mod settings to their original ...
0
votes
0answers
150 views
Creating a custom Jquery modal form to upload data in wordpress 3.5.1 [closed]
i am new to jquery.I looked to various demos but can't find what i am looking for.
I want to add a upload item feature in my wordpress website.This feature is available to the end user after he/she ...
0
votes
1answer
49 views
Replacing & in JS code on pages
I am needing to remove the & that seems to be replacing my & on my page code.
My original code looked like this:
...
0
votes
0answers
28 views
List.js inside WordPress widget
I am trying to implement list.js (http://listjs.com/) inside my WordPress widget, so far with no success.
At first I have tried it in a simple index.html file outside the WordPress environment just ...
9
votes
2answers
258 views
Does the functions.php file ever get called during an AJAX call? Debug AJAX
Trying to figure out an issue a fellow programmer is having. I was wondering if the functions.php file get called at all when you do admin side AJAX? I know that when you do an AJAX call a part of ...
1
vote
0answers
40 views
Using window.onload with Ubermenu
I am using a plugin to place this code on specific pages. But it is not firing correctly.
Has anyone had experience working with Ubermenu, WP and jQuery? Do I have to call jQuery into my ...
0
votes
0answers
32 views
Show the image specified in src
I'm trying to find a way to state "if" there is an image in the description of a Wordpress post show the image specified in src instead of from the data-img attribute. Right now I'm using a JS plugin ...
0
votes
0answers
28 views
Submit form values to external URL shown displayed an iframe [migrated]
I am trying to make a form that on submit passes values to a external URL and show the results as an iframe. The form is the home page and the results must be shown in the first page as well.
Everery ...
0
votes
2answers
73 views
Theme Customizer not loading JS for live preview
I am currently working on adding options to the theme customizer. For the last two hours I have been trying to get the live preview working and I am trying figure out why my theme isn't loading the ...
0
votes
0answers
28 views
Dont remove comment box when replying to existing comment
When using the WordPress comment system the top Comment Reply box dissapears when I click to reply to any of the existing comments. If I then click cancel it reappears.
Is there a way to keep this ...
6
votes
1answer
69 views
API to trigger prompt on leaving page
I have a proprietary plugin that creates a metabox on the edit-post page. When the data managed by the plugin is edited and the user navigates away then we would like the user to be prompted as ...
0
votes
0answers
24 views
Is it possible to enqueue the Youtube API script or does it have to be inline?
The code below is the main part of a function in my functions.php which returns a div and script which ultimately output a youtube API iframe to the template where the code had been called from. At ...
0
votes
1answer
86 views
Move specific javascript to the footer
I have noticed if I move all of my javascript to the footer, some plugins do not function properly, or at all. Is there some code I can add to my functions.php to move specific plugin javascript to ...
-1
votes
1answer
87 views
Javascript 2 elements dependent onclick .toggle [closed]
Hi I have two JavaScript elements for logging into and create an account. They both overlap each-other when the div id is clicked and I need them to hide when the other id is clicked and vice versa.
...
0
votes
1answer
46 views
wp_deregister_script was called incorrectly
So apparently I am now allowed to do the following in the admin, ON my theme options page and only ON my theme options pages:
public function load_admin_jquery(){
...
0
votes
0answers
43 views
wp_register_script stops wp_enqueue_style working
Ambiguous title, yes. Sorry.
I am using the roots framework to register scripts and stylesheets.
When I include the wp_enqueue_script('main_js'); my style sheets come out as <style media="" ...
0
votes
0answers
72 views
Javascript conflict Quform with BG Slider [closed]
My background slider is not working only on pages that have the QuForm plugin on it.
Their forum said that this was the problem on my footer
<style type="text/css">
#slide-list {
...
0
votes
1answer
99 views
Problem adding MP3 attachments to a jPlayer playlist
I'm trying to get a post's mp3 attachments working with the jplayer plugin (with playlist addon). I have it working for a set number of attachments, but am failing to find a dynamic solution for any ...
0
votes
1answer
58 views
How to Load Plugin JS in theme's footer section
I am working on optimizing my theme so that the load time can be decreased, as of now i have used wp_enqueue_script() to add my custom js file and everything is working fine as expected.
One thing ...
5
votes
1answer
106 views
WP 3.5 media manager - how to create a working gallery frame
i am writing a plugin and after hours and hours of searching for any documentation on WP 3.5 media manager i managed to create my custom media frame that is being called when a user clicks on a custom ...
0
votes
0answers
35 views
How can I update options with javascript?
I'm writing a plugin with an admin screen. I have a set of radio buttons to select the tabs on the plugin's admin page. I also have a 'last_tab' option that allows the administrator to pick up where ...
0
votes
0answers
144 views
how to get the variable passing through the ajax url in wordpress query
i want to get the variables passing through the ajax url in wordpress query_post().
here is my javasrcipt
<script type="text/javascript">
jQuery(document).ready(function($){
...
0
votes
0answers
16 views
Worpress json api plugin - calling from jQuery [duplicate]
I am using JSON API Plugin for wordpress. It generates a json file from my wordpress content at http://grmmph.com/?json=1.
It seems to work fine if from the link above, however when I am trying to ...
0
votes
1answer
85 views
Load external javascript files
I have some trouble with loading external javascript files inside my WordPress theme.
Use the following markup:
<script src="<?php bloginfo('template_directory'); ?>/js/jquery-1.8.1.min.js" ...
