Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Using Jquery in WP to create a splashscreen

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #33752
    godonholiday
    Member

    Hi, I have managed to use this jquery code:
    http://meerkat.jarodtaylor.com/how-to/meerkat-splash-page/
    to create a splash screen that loads a gif, the gif plays and then the splash screen fades away to show the content on the page.

    The problem I have is taking it into WordPress?

    I am not sure where to call the js files?

    Where to type the function

    etc. etc..

    Could someone please point me in the right direction?

    Thanks

    #115647
    isme
    Member

    I think you are looking for the files in :
    wp-content/themes/{your-theme}/

    In that folder you will find as styles.css page and you might find some js files.

    But I’d think that for your purposes you really want to create a plugin.

    #115967
    elneco
    Participant

    and then just point to your file from the footer.php with
    <script type="text/javascript" src="<?php bloginfo(‘stylesheet_directory’); ?>/js/yourscripts.js"></script>

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.