WordPress.org

Support

Support » Plugins and Hacks » jQuery caption anyone?

jQuery caption anyone?

Viewing 3 replies - 1 through 3 (of 3 total)
  • wpismypuppet

    @wordpressismypuppet

    Looks to me that you should give those images you want to have this happen to a class… like class=”myclass”.

    Then using the jQuery example they give in their “How To Make It Work” section, just change the code from this:

    $(document).ready(function() {
       $('img').hover_caption();
    });

    To this:

    $(document).ready(function() {
        $('.myclass').hover_caption();
    });

    You may need to replace any $ with jQuery, depending on your compatibility mode…

    Thanks wpismypuppet

    I will go back and try that, i have just used a rollover image solution for now, which if im honest is probably fine anyway.

    But i shall go back and retry your solution in the interest of furthering my WP/jQuery knowledge.

    Thanks again

    Marcus

    i used the modification above with some success, but it isn’t pulling the title attribution from the image so the rollover is stuck on the default text. i really know very little about js and have somehow managed my way with php, if anyone has any clue what i might need to do to make this work, your help would be greatly appreciated!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘jQuery caption anyone?’ is closed to new replies.
Skip to toolbar