Can't get it into wordpress

Matthias's Avatar

Matthias

16 Nov, 2010 06:33 PM

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!

  1. 1 Posted by maxrogers on 22 Nov, 2010 01:52 AM

    maxrogers's Avatar

    Also, attempting to implement in a wordpress site doing above. Watching for any helpful pointers! Thanks!

  2. 2 Posted by StoneNuts on 12 Dec, 2010 02:16 PM

    StoneNuts's Avatar

    For working with DOM and JQuery within Wordpress Installation, you have to use

    jQuery(document).ready(function ($) {

    $('#id').toggle({
        //paramter für bsp. toggle
    });
    

    });

    instead of simply

    $(function() {

    });

    So for your TipTip implementation it should be

    jQuery(document).ready(function ($) {

       $(".test").tipTip();
    

    });

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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