• Resolved jfkweb

    (@jfkweb)


    Hi, anyone know ho to call jQueryUI using use google libraries?

    install instructions just say ‘install and activate’ no mention of calling the script?
    Bit of a newbie!

    Thank you!

Viewing 4 replies - 16 through 19 (of 19 total)
  • Ok, I understand. That looks pretty close.

    Don’t really put html tags like ‘<script>’ in your javascript file (my_accordion.js), so just:

    jQuery(document).ready(function() {
        jQuery("#accordion").accordion({ header: "h3" });
    });

    You need a ‘/’ in your script registration url (difference between https://www.ads-software.comsupport and https://www.ads-software.com/support )

    get_template_directory_uri() . 'my_accordion.js'

    Should be:

    get_template_directory_uri() . '/my_accordion.js'

    Also, somehow I mispelled accordion in my examples, so double check that. ??

    Thread Starter jfkweb

    (@jfkweb)

    Thanks a mil! got it working, kind of, hoping its a css thing, when click a header it pushes div below it down the page then it bounces back to where it should be. sound familiar? anyway no worries thanks for your help, big donation coming your way ??

    happy paddys day to ye!

    Glad you got it working! I haven’t used the accordion, but it sounds like it could be a style or markup issue.

    Good luck! Happy St. Patrick’s Day to you as well.

    Jay

    p.s. don’t forget to mark the thread resolved on the forum ??

    Thread Starter jfkweb

    (@jfkweb)

    Nice One. Will do. ??

Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘how to 'use google libraries'’ is closed to new replies.