A client side scripting language useful for making interactive web sites

learn more… | top users | synonyms

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 ...
0
votes
1answer
486 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
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
201 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
92 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
653 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 ...
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 ...
0
votes
2answers
124 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
107 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 ? ...
0
votes
2answers
169 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 ...
-2
votes
2answers
245 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 ...
0
votes
1answer
99 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
542 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
100 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
90 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
184 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
2answers
299 views

How to Reload the Dashboard After Clicking Update in Quick-Edit?

How can I refresh the wp-admin/edit.php page after a user clicks Update in the Quick-edit form?
0
votes
1answer
67 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
2answers
181 views

How do I make my wordpress post appear in a mouse hover preview?

Mouse hover previews usually only show title and image. Instead, I want the entire wordpress post to show. The code that calls the preview is this: adTitle = jQuery(this).find('img').attr('alt'); ...
0
votes
1answer
194 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 ...
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 ...
1
vote
1answer
108 views

Pass data from wordpress to javascript in JSON

Currently using this simplified code to pass data from WP to JS. function add_map_data() { $objName = "MapData"; $array = array( "MapViewLatitude" => "51.505", ...
2
votes
1answer
328 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 ...
0
votes
0answers
61 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
116 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
481 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
339 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
249 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
122 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
195 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 ...
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 ...
0
votes
2answers
204 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
123 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
64 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
194 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
150 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" ...
3
votes
1answer
340 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 ...
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 ...
2
votes
1answer
180 views

Instantiate TinyMCE via JS ( rather than PHP/wp_editor )

Once a page has loaded, how do I create a TinyMCE editor? Putting a wp_editor call in an AJAX request then displaying it gives this: Visual and text tabs are nonfunctional, no toolbar, no active ...
0
votes
2answers
944 views

WP_enqueue_script() loads them always in wp_footer()?

This is my example code placed in functions.php: function my_init_method() { wp_enqueue_script('jquery'); wp_enqueue_script('jquery-ui-core', false, array('jquery'), false, false); ...
0
votes
1answer
297 views

wp_register_script Question

I need to add the following JS to the head, but I don't know how to add the "data-cfasync="false" " by using "wp_register_script" or "wp_enqueue_scripts". Please help!! <script ...
0
votes
2answers
486 views

url - ajax loaded but no JS

I have this url to call the taxonomy.php by pressing the button with the code beneath to show filtered posts: http://myurl/?meta_key=post_views_count&orderby=meta_value&order=ASC This is ...
0
votes
0answers
53 views

wp_enqueue_scripts Script dependency Catch 22? [closed]

I have a function in my functions.php that calls my custom tracking JavaScript file. It relies on Piwik's JavaScript to be loaded beforehand or else I get this error: Uncaught ReferenceError: ...
1
vote
2answers
593 views

Custom Scripts per page or Custom Post Type

A client has requested some interesting functionality. THey have about 20 different scripts, most of which are needed by one page only. They would like an area within Wordpress's pages and custom post ...
0
votes
1answer
401 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
1answer
84 views

How to localized one js file for different actions?

I have a group of javascript functions in one js file. each function acts on a specific action and get its own ajax response. some are on different pages, some are on the same page. If I don't do the ...
-3
votes
1answer
313 views

Google AdSense Ad not showing up in WordPress Blog [closed]

I cannot get a Google AdSense ad to show up in a WordPress blog I'm working on. The ads have been approved and I entered the code (and double-checked the code to make sure I had it right). The code is ...

1 2 3 4 5 10