Can't get it into wordpress
Hey,
this seems to be an easy thing, but i can't get it working: I'm trying to include tipTip at my wordpress (3.0) site. So far, I loaded jquery at the header.php, copyed the 3 tipTip files into wp-include/js/jquery and wrote
<code><script type="text/javascript">
$(function(){
$(".test").tipTip();
});
</script></code>
at the very start of my worpress post. Elements of class "test", however, will not react and in firebug, the codeblock is grayed out.
Any suggestions? Thank you in advance!
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by maxrogers on 22 Nov, 2010 01:52 AM
Also, attempting to implement in a wordpress site doing above. Watching for any helpful pointers! Thanks!
2 Posted by StoneNuts on 12 Dec, 2010 02:16 PM
For working with DOM and JQuery within Wordpress Installation, you have to use
jQuery(document).ready(function ($) {
});
instead of simply
$(function() {
});
So for your TipTip implementation it should be
jQuery(document).ready(function ($) {
});