A client side scripting language useful for making interactive web sites

learn more… | top users | synonyms

0
votes
2answers
172 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
96 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
333 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
257 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
263 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
718 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
187 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
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
555 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
93 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
68 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
199 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 ...
9
votes
4answers
934 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
344 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
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
117 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
491 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
351 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
253 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
125 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
201 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
211 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
124 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
65 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
198 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
153 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
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 ...
0
votes
2answers
956 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
2answers
496 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
1answer
302 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
0answers
54 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
597 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 ...
2
votes
1answer
86 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 ...
-2
votes
1answer
539 views

How to Create a Repeatable Meta Box

I would like to know how to create repeatable meta-boxes like in this video: http://www.screenr.com/a17s [starts at around 40 seconds]. I saw an answer on how one creates a repeatable section within ...
0
votes
1answer
411 views

AddThis Sharing Bar Not Displaying on Custom Page Template - JS conflict?

http://www.headcount.org/a-real-whodunnit-the-oil-spill-blame-game/ - on the single posts the sharing bar displays. http://www.headcount.org/blog/ - on the blog archive page it doesn't (even after ...
0
votes
1answer
484 views

Using Javascript to Set Redirect Page in Contact Form 7

I have a Contact Form 7 form that needs to redirect to specific pages depending on how the user arrived at the form. I'm storing the URL they need to be redirected to using localStorage and I'm trying ...
-3
votes
1answer
320 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 ...
4
votes
2answers
3k views

Infinite scroll / lazy loading with NextGen Gallery

I'm working on a project for a friend that involves a massive page with 3,000+ photos. See: http://www.thepurplepixie.com/projects/purple-pixies-people-project/ Currently, I have pagination set to 50 ...
1
vote
4answers
521 views

HTML / Javascript in custom field textarea?

Is there a filter for allowing HTML / Javascript into a custom field textarea? I'm using get_post_meta. On the frontpage I want the HTML / Javascript to run, not to be displayed.
0
votes
1answer
169 views

if is_home(), change class of menu-item-225 of wp_nav_menu

Thanks for taking the time to check this out. I know it's outdated, but I'm using Wordpress 3.2.1. I have a Custom Home Page - where I created a Page for it and titled it as my Home Page with the ...
1
vote
1answer
474 views

window.send_to_editor throws unterminated string literal error when adding image with multi line description

I am using media-upload.php?type=image&tab=library script to add an image to a post with a description that contains html. This php script uses the javascript function window.send_to_editor to ...
5
votes
1answer
540 views

How to provide translations for a WordPress TinyMCE plugin?

I know that I can get my translations into JavaScript doing: $MyTranslations = array( 'translation1' => __("Some String 1", "MyTranslations"), 'translation2' => __("Some ...
0
votes
2answers
555 views

Shortcodes and Javascript/jQuery Function Calls [closed]

I'm learning about shortcodes and javascript. I've simplified my problem as much as possible. In my shortcode's php file I wp_enqueue script1_javascript.js and script2_jquery.js. The first script is ...
0
votes
1answer
467 views

Using the loop to set locations for all posts on a single google map

Firstly, hi all! I am new to worpress stackexchange. I have been trying to build my own google map to show the location of all my posts. But I don't seem to be able to get the markers to display on ...
1
vote
1answer
781 views

Add a Fancybox automatically to post type “post” images

Currently, on my homepage (which is a list of posts), if you click an image it opens in the same window as a full size image. I'd like to change it so that when a user clicks said image it opens into ...

1 3 4 5 6 7 10