WordPress.org

Ready to get started?Download WordPress

Forums

[jQuery] Insert jQuery UI Widget - VERY SIMPLE (1 post)

  1. rpmonteiro
    Member
    Posted 2 years ago #

    Hi there, I have this piece of code. This is from a jquery UI widget:

    <script>
      $(function(){
        $('#flip').jcoverflip();
    
      });
    </script>
    </head>...
    <body>...
    
    <ul id="flip">
        <li><a href="..."><img ...><span class="title">My title</span></a></li>
        <li><a href="..."><img ...><span  class="title">Another title</span></a></li>
        ...
      </ul>

    I'm trying to install jCoverFlip. It says in the installation instructions that
    Now you can use it like other jQuery UI widgets. After installing jQuery, jQuery UI, and jCoverflip, just call .jcoverflip() on the parent element to create it.

    But what does that mean?
    My doubt is where shall I put that code in the page for the widget to work!? How to insert that jQuery UI widget?

    (I have all requirements and libraries installed)

    I believe this is very simple and I am being very dumb!

    Thank you guys! (:

Topic Closed

This topic has been closed to new replies.

About this Topic