Knipple
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Load newer JQuery version..Hi Prasath,
Unfortunately that isnt working. Im checking which script is loading via Firebug and when i use enqueue etc it changes the order that jQuery loads but keeps loading 1.6.4 …
[No bumping. If it’s that urgent, consider hiring someone.]
Forum: Themes and Templates
In reply to: JS in page template..Okay i got this working, it was basically an url/location as Flashbuddy pointed out. Notice the kindof curly speechmarks in your code Flashbuddy? That’s what was throwing it and i hadn’t noticed..
I have a fresh new problem – in my external js file i’m trying to use the template url in javascript using the php command:
var backgroundUrl = "<?php bloginfo(template_directory);?>" + "/images/thumbs/" + numThumbs + ".jpg"; alert(backgroundUrl); newdiv.style.backgroundImage ="url("+backgroundUrl+")";But the php code doesn’t seem to be giving the url, it’s just printing the php code..
Any hints/tips?
Forum: Themes and Templates
In reply to: JS in page template..It’s quite a pointless one then isn’t it, if it conflicts with standard text / can’t differentiate.
Chome is now showing ‘Uncaught Reference Error: makethumbs is not defined’ on the debug. It`s being thrown at the following code in the template page:
<script type="text/javascript"> <!-- makethumbs(); Uncaught ReferenceError: makethumbs is not defined //--> </script>It doesn`t seem to be complaining about can’t find the script now so no idea..
[No bumping. If it’s that urgent, consider hiring someone.]
Forum: Themes and Templates
In reply to: JS in page template..Ahh the punctuation in my text?? So if i wrote it’s i have to use the straight one rather than the backwards tilted one.. why doesn`t the code button wrap it in a proprietary code tag like normal forums?
Forum: Themes and Templates
In reply to: JS in page template..U on about something in the code whats a back tick?
Forum: Themes and Templates
In reply to: JS in page template..Any idea why the text in my replies on here are showing up in mixed fonts??
Forum: Themes and Templates
In reply to: JS in page template..That’s not making any difference, thanks though. If there’s no path it’d just reference the same folder it’s running out of tho right?
Forum: Themes and Templates
In reply to: JS in page template..As i said in the post the js file is in the same folder as the Header and template files etc ( root of the twentyeleven theme )..