A client side scripting language useful for making interactive web sites

learn more… | top users | synonyms

1
vote
1answer
59 views

Generate sidebar depending on height of post

I'm building a site which features sidebars next to each post/article displaying random thumbnails linking to other posts. Each sidebar should never be longer/bigger than the post it's sitting next ...
0
votes
1answer
25 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 ...
0
votes
1answer
41 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
1answer
84 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 ...
0
votes
1answer
44 views

Expanding / Collapsing Modules in Wordpress Panel

I'm using WordPress 3.3.2. version. I can't able to expand / collapse modules in wordpress panel. I have deactivated all plugins and checked. But no result. If i disable Java Script, it is working ...
0
votes
1answer
91 views

Javascript alert appears before <!DOCTYPE> tag

I have wordpress 3.5.1 on Debian Squeeze. Every time before the page loads javascript alert appears with message 2819371938193817109948281937271937 and have to click OK to see the page. I get this ...
0
votes
1answer
49 views

What can cause JavaScript and CSS files to be minified?

On one of my client's site, I see that my plugin's JS and CSS files are minified. Trying to identify what causes the files to minify, I tried to deactivate all plugins (except mine), and changing the ...
0
votes
1answer
41 views

I keep getting Javascript error messages

I think something in my code must be utterly wrong because as soon as I manage to fix one error that I found, the next one pops up. I just managed to solve this problem. Now this error message keeps ...
0
votes
1answer
41 views

Can't insert files in other inputs

I'm trying to allow multiple images to be uploaded to the media library where I can then take the URL of the image and insert it into a custom page on the website but for some reason, when I click on ...
0
votes
1answer
336 views

Repeatable custom meta fields

I am working on creating custom meta boxes for the back-end of WordPress. I would like to add a metabox with several fields, in my case an image upload and a text input, but with a button that can ...
0
votes
1answer
241 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 ...
0
votes
1answer
133 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 . ...
0
votes
1answer
126 views

Multisite configuration fails with css/js files

I have installed Wordpress using multisite + path (as opposed to subdomain). Seems to work, except JS/CSS files are not loaded. my conf: <Directory "/var/www/pages"> Options All ...
0
votes
1answer
223 views

Ajax URLs without #!, how to prevent falling into single.php on load or reload?

I'm trying to make things properly with a single page ajax powered portfolio. I've read that there is no need of #! to make it crawlable by google. So I have clean URLs that updates with .pushState ...
0
votes
1answer
93 views

Custom attributes to javascript tags

My site uses cloudflare but I really want to enable rocket loader, but if I put it on automatic mode, it messes up my whole site... So I googled and found This answer which has helped in terms of ...
0
votes
1answer
220 views

Placing Ads after every 10th Post with Infinite Scroll

Hello at the moment what I have to do is load a couple of ads, some normal html and two are java script. I've tried the PHP method of this: <?php $postnum++; if($postnum%10 == 0) { ?> <div ...
0
votes
1answer
402 views

Want to add comments to NextGEN Gallery

Does anyone know how to do it? I would like to implement Facebook or Disqus comments. I am using the gallery with the shutter effect. Thanks for your help!
2
votes
0answers
72 views

Continue javascript execution when errors occurs

I use the WP native function wp_enqueue_script() for all my JavaScripts loading both in WP front and back-end so it can handle duplicated calls to the same script and so on. One of the issues is that ...
2
votes
0answers
79 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 ...
1
vote
0answers
48 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 | ...
1
vote
0answers
39 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 ...
1
vote
0answers
249 views

How to bind data-src attribute for the image in the post using jquery?

I'm trying to use foresight.js for responsive image in the wordpress blog. For that I have to add the data-src attribute in the place of src in the <img> tag. Or I have to get the url from the ...
1
vote
0answers
132 views

Accessing theme customizer farbtastic object instances

I have multiple individual color pickers set up in the theme customizer, which results in several instances of the farbtastic color picker. I am trying to find the jQuery/JavaScript instance variable ...
1
vote
0answers
95 views

Two different registraton forms for buddypress

I have to different user types on my buddypress site, athletes and coaches. Is their any way to have two different registration forms on buddypress? The ultimate solution would be to have a dropdown ...
1
vote
0answers
99 views

How does Wordpress handle HTML Tables interaction with jQuery

I have javascript that gets the width of a table and reduces the css fontsize of text within the table until the table width is less then the width of its parent div. The code bellow shows the ...
1
vote
0answers
326 views

GeoMashup plugin: how to customize cluster markers / icons?

Is there a way to customize the standard cluster icon marker which GeoMashup uses to display nearby posts grouped in a certain area? by default it's a red dot in V2, or a blue dot in V3 how to ...
0
votes
0answers
9 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
0answers
28 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 ...
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
18 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 ...
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
0answers
30 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
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 ...
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

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 ...
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
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
33 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
127 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
46 views

How to execute a function from function.php in a javascript?

I have created a custom menu function in functions.php, but I need to execute it in a container that is created by a javascript. Is this doable? The js is outputting a container called ...
0
votes
0answers
35 views

Open gallery image include all post images

Is there a way to make wordpress so when I click on a gallery image, it automatically includes all the images in that specific post? so lets say I have image 1,2,3,4,5 and I have [gallery ids="4"] ...
0
votes
0answers
55 views

Writing to HTML with inline javascript in Wordpress

I'm trying to display an email address mailto link on a page from an array of email addresses. <script type="text/javascript"> var arr = ["x@temple.edu", "y@temple.edu", "z@temple.edu"]; //my ...
0
votes
0answers
41 views

Insecure content loading on a secured site, how to force https?

I have a seemingly odd issue where when logged in as an admin on a site I can load all content and assets just fine. When I logout to view the site entirely as a user would see it, the html content ...
0
votes
0answers
53 views

Hide edit-attachment in Media Manager

I use the following script to alter the media manager to my needs: Wordpress Media Manager 3.5 - default link to I customized it a bit according to my needs, but now I want to hide the ...
0
votes
0answers
35 views

GD Star Rating and Infinite Scroll callback

I'm looking to use GD Star Rating on a page that uses Infinite Scroll. However when loading the next section of the posts, the star rating looses it's functionality. I've found easy callbacks for ...
0
votes
0answers
25 views

Only allow customize partial of the email address when register / edit in the user profile

I can not find a fitting answer online, so I need to see all the pros in here for a favor. I am thinking about only allow user to edit partial of the email address when register, but I do not know if ...
0
votes
0answers
204 views

Loading content dynamically using jQuery.load

So I am working on a website for a client and they want a tabbed content area. Without loading all of the queries on a single page, how can I go about doing this? Right now I have the following for my ...
0
votes
0answers
49 views

Javascript not working on site

I've recently created my first wordpress site, and have installed it all manually. It's all working fine, except that none of the Javascript on the site works. I think this may have been corrupted ...
-1
votes
0answers
9 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 + "");
-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 ...

1 2