A client side scripting language useful for making interactive web sites
2
votes
1answer
219 views
WP_enqueue_script inside shortcode?
I've got shortcode that needs to include JS library only once and only there where it's used.
function shortcode_function($atts, $content = null) {
$class = shortcode_atts( array('something' ...
0
votes
2answers
73 views
Using wp_enqueue_script with social media buttons?
I want to embed a social sharing button in the theme. Following is the standard code to embed the twitter button.
<a href="https://twitter.com/share" ...
2
votes
1answer
294 views
Gravity Forms not loading under https, jQuery is not defined
I am using Gravity Forms on my Wordpress site, and so far so good. The problem is I have made the page secure (https/SSL), and this is making the form not to work.
It looks like the issue is how the ...
1
vote
0answers
282 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 ...
0
votes
1answer
588 views
Trying to get fittext to work in Wordpress
I have the following code in my template page and I have registered jquery and fittext in my theme's functions.php. They are currently showing up in the footer as I set them to. I can set them up in ...
0
votes
0answers
5 views
fittext only works if I place the js file in the middle of the document [duplicate]
Possible Duplicate:
Trying to get fittext to work in Wordpress
I have tried registering my fittext js file in the header and the footer and it only works properly if I manually add it in ...
1
vote
2answers
647 views
is_front_page() not working wordpress
I'm trying to load a script from "functions.php" just when i'm in the front page.
I set a static page called "home" in the reading options.
The home page loads the "front-page.php" template correctly ...
0
votes
1answer
207 views
How To Include JavaScript Files Only In Single Posts?
I know that wp_enqueue_script() inserts Javascript files into the WordPress header in the appropriate place.
However, I want to include my Javascript in all single posts, ignoring the WordPress home ...
0
votes
2answers
554 views
Including JavaScript file in the header [closed]
I have tried to use wp_enqueue, and I can't figure out how to implement it. I have resorted to just using bloginfo to link to my JS file. It works fine on my remote server, but as soon as I upload to ...
0
votes
2answers
504 views
Use of Javascript with Dojo/Dijit on a WordPress page
I just created a web page that uses a lot of JavaScript to build a fancy form that helps build an build the object/html behind an mp3 player for a user. I got it working and tested in a plain-html ...
0
votes
2answers
96 views
“Conflict” with jQuery (or its plugins)?
I've been working on localhost and everything looks fine but then when I uploaded my Wordpress theme online, all of the jQuery plugin functions are undefined!
One solution that worked (which I ...
1
vote
2answers
782 views
Most efficient way to add javascript file to specific post and/or pages?
I am wondering what the most efficient method is to add a javascript file specifically for a post and/or page.
Here are a few solutions I came up with:
Switch to HTML editing view and post your ...
5
votes
2answers
4k views
Enable Submit Comment Without Page Reload (Using Ajax)?
When user writes a comment and hits the submit button, WordPress reloads the page, before the comment is shown to the user.
Is there an Ajax-based solution that allows users to submit questions ...
0
votes
1answer
106 views
javascript and css links not working on sever
I have some Jquery links in my header. First off I am probably not using the proper wordpress function to do this. Right now on my site the code that is below is not working. These links aren't there, ...
1
vote
0answers
136 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 ...
0
votes
2answers
144 views
Script to run at completion of Page Loading
On the home page I a have 2 lines of code I would like to run in JavaScript.
Where should I put these two lines of code.
Does WP have a specific way to do this. Or should I just pick the last .js ...
0
votes
0answers
109 views
jscrollpane webkit problem [closed]
i am facing weird problem with jscrollpane on chrome and safari , its not showing the content well , i did all possible solution with it .
is there any idea i can try to fix this issue ?
...
3
votes
2answers
503 views
How to disable 3.3 Tooltips?
I find the 3.3 Tooltips annoying when I'm upgrading many live and dev sites. How do I disable them via functions.php? Unenqueue wp-includes/js/wp-pointer.js ?
0
votes
2answers
187 views
trouble with page_id & highlighting current page
I'm using the below code to highlight the page name/gallery shown when the corresponding link is clicked on. My challenge is that regardless of what link I click, only the very first ...
1
vote
0answers
103 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 ...
2
votes
1answer
346 views
Close the media-upload thickbox right after upload is finished?
I'm working on a front-end uploader using WP's own media-uploading functions. All is well, except that I just want to simplify some UI things, like removing tabs and unnecessary information for my ...
1
vote
1answer
271 views
Javascript stopped working [closed]
For some reason, the scripts that I have set up on my wordpress install stopped working yesterday afternoon. I had been editing things, but I'm not sure what I could have done that caused it to stop.
...
7
votes
3answers
5k views
Loading scripts only if a particular shortcode or widget is present
I needed a way to filter a page/posts content before it was loaded so I could add scripts to the header if a specific shortcode was present. After much searching I came across this on ...
-2
votes
2answers
328 views
Can I include Javascript/jQuery in a page?
I'm extremely new to Wordpress, and I've offered to help out with a project that uses it.
In a new page I'm creating, I need to use javascript/jQuery to write out the html dynamically - it doesn't ...
2
votes
6answers
731 views
WP script versioning breaks cross-site caching?
I am loading JQuery from the google CDN using the following code:
wp_deregister_script('jquery');
wp_register_script(
'jquery', // handle - WP uses this name to refer to script
...
0
votes
1answer
195 views
Extracting Address from Custom Post via Javascript for Google Maps API
I am created a theme with custom posts which outputs to a Google Map with place markers. Users will create a custom post users and include street addresses which will be geocoded using Google's Map ...
0
votes
1answer
106 views
Add Fille Attachment Name and URL into Javascript
I'm working on incorporating the jPlayer into our WordPress site. I don't particularly care for the two plugins that are available as our client is a bit on the technically deficient side. What we are ...
0
votes
1answer
599 views
Setting parent menu item href to javascript:void(0) [closed]
Ok, worked out how to do it, but wanted to know if this is the preferred method of doing it or if there was a better way.
What I have is this..
<script type="text/javascript">
...
0
votes
2answers
101 views
wordpress before or after javascript problem
hi guys im aqeel im trying to implement a slide show in a wordpress site's home page but it not working it simply contains the easyslider1.5.js file which i put in js folder css which of course in css ...
0
votes
3answers
96 views
Only loads on the contact template page
In the footer i load the Google maps api. But only on the contact page, i used the google maps api. Now i want to make code. That the google maps api is only load in the contact template pages. How ...
0
votes
1answer
71 views
How to enque js script in footer that are not in .js file?
I do have code that is js script inline together with php script is their possible way to enque it to footer without puting it on .js file
To clear explanition on my question here is my example code
...
0
votes
1answer
213 views
Equal height sections in custom Headway Theme
I have this piece of code:
<section class="row row-3">
<section class="column column-1 grid-width-19 grid-left-0">
<section class="column column-2 grid-width-5 ...
10
votes
4answers
979 views
Could the WP script/style loader be used to concatenate and gzip scripts and styles in the front-end?
WP has a nice javascript loader included in wp-admin:
http://core.trac.wordpress.org/browser/tags/3.0.4/wp-admin/load-scripts.php
and a CSS loader:
...
3
votes
1answer
362 views
Localhost load-scripts.php Error 500 in Dashboard [closed]
I cloned a remote site on my local MAMP. I fixed pretty much all isues like permission issues and timthumb cache issue used by my Woothemes Fresh News theme. The only issue now is that the backend is ...
0
votes
0answers
63 views
JS Image Rollover- Newbie [closed]
Thanks in advance for your time and help with this issue. Let me start by saying I'm new to web. I'm putting together a portfolio site. I set up a HTML page with some JS image rollovers. Which you can ...
0
votes
1answer
31 views
Loops running into each other
I have 3 loops on one page, each pulling a different CPT into a portfolio like layout.
Live: http://iassc.baltimoredrew.com/providers/
Gist: https://gist.github.com/3503334
However the tags for the ...
0
votes
0answers
25 views
Add static post every 5 posts [duplicate]
Possible Duplicate:
Using jQuery .after inside loop
This is a slight adaptation of a question I asked previously - Using jQuery .after inside loop.
So now I need to run this function every ...
0
votes
1answer
118 views
Using jQuery .after inside loop
I have a bit of javascript that will dynamically add a static post to a loop. The script uses the jQuery 'after' method and on a static page it works beautifully but when inside the loop I don't get ...
0
votes
2answers
516 views
Setting Variable Path to Template Directory inside Script
I have HTML5 Template with 5 pages. I am converting it to a WordPress Theme.
I have a contact page. This page includes 'forms.js' script to send contact form data to 'MailHandler.php' file.
Inside ...
0
votes
1answer
398 views
Using JQuery to check for Rel Attribute of Image before Overriding It
My Wordpress theme (when enabled) overrides the rel value of the link of all images with rel="lightbox" using the following code:
http://pastebin.com/Bsh739QY
How can I edit the JQuery to check for ...
0
votes
1answer
277 views
how can I set COOKIE? [closed]
(sorry if I can't write well, I'm from Armenia. I hope you can understand me :D)
I have two codes for chnging body background:
function displayResult()
{
...
0
votes
1answer
126 views
Add JavaScript in admin in custom plugin [duplicate]
Possible Duplicate:
What is the preferred way to add custom javascript files to the site?
I was reading few posts here about this, but all answers are about wp_enqueue_script or something. ...
0
votes
1answer
233 views
Dynamically Add Custom Fields in Posts
I'm building a resume website and I would like to manage the data in custom fields.
For examples I would have multiple meta boxes: Education, Work and Competencies
In Work I can have multiple ...
0
votes
2answers
218 views
Sliding pages + wordpress [closed]
do you have any idea how to achieve such effect with wordpress?
http://www.papajastudio.pl/
http://soulwire.co.uk/
I mean the navigation. i want to have simple cms to edit website content + such ...
0
votes
2answers
130 views
Wordpress as CMS: How to manage/handle images assigned to a post as full-sized background images in a slideshow?
I wonder if Wordpress is the best CMS or solution for what I wannt to do?
I need to find some way to upload images to a post that I can loop as background images. Just like I can upload multiple ...
1
vote
0answers
2k views
Failed to load resource: the server responded with a status of 404 (Not Found) [closed]
Using Google Chrome Console and also Firebug I get Failed to load resource error on each page.
It's an undefined image and the undefined resource is always
http://mysite.com/pagename/undefined
I've ...
0
votes
1answer
67 views
hooking with javascript in the edit post sending process [closed]
I'm developing a plugin for a complex custom field that need some js checks and validation before sending.
Is there a way to hook into the sending process with js/jquery?
5
votes
1answer
202 views
What does wp-list.js do?
Pretty straightforward question!
What does wp-list.js do?
It's listed in the wp_enqueue_script codex page as one of the WP included javascript libraries.
Thanks!
1
vote
1answer
169 views
wp_enqueuescript won't load in footer even with true value set?
Below is my code for enqueue my scripts and css. I am trying to get the JavaScripts to load in the footer of my site, but when I view source I see them loading in the header. I suppose the "true" ...
1
vote
0answers
101 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 ...
