WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Javascript/jQuery Troubles (Smooth Marquee) (6 posts)

  1. eaglesoars
    Member
    Posted 2 years ago #

    I've recently been converting my poorly coded (probably) HTML web page into a WordPress theme, and had created a scrolling twitter feed using the following tutorial:

    http://andreaslagerkvist.com/archives/2011/06/24/how-to-create-a-scrolling-twitter-feed-using-jquery/

    This was pretty much seated in my HTML, with code to bring in jQuery and the smooth marquee plug in into the site.

    I brought this over to my WordPress theme and it worked fine when I tested the theme on XAMPP, but now I have it on a server it's not working any more. The marquee seems to work fine, but the smoothness and the pause created by hovering over the feed are not working any more. I'm certain it's a problem with my own use of jQuery in the theme, can anyone help me out here?

  2. popper
    Member
    Posted 2 years ago #

    link to the live site?

  3. eaglesoars
    Member
    Posted 2 years ago #

    I'm afraid it's not live yet, but I'll do my best. Here is the HTML that I originally coded (slightly messed up the rest of the site from fiddling with the css, but the twitter feed is there): http://www.gamefront.com/files/21917872/NewDesign.zip.

    What I did in the WordPress is copy the code exactly from the HTML to the WordPress theme, although I'm guessing it's wrong. In the HTML, you can see how the feed stops when hovered over and also looks quite smooth, both of these aspects are lost in the WordPress theme. I hope that's enough?

  4. popper
    Member
    Posted 2 years ago #

    No, sorry. Since the file you're attaching is working, that's no good to help you. Maybe you can paste the wordpress code into the pastebin?

  5. eaglesoars
    Member
    Posted 2 years ago #

    Here's the header.php file that the Java is set up inside, from inside the theme. That's all I'm using to render it, and I'm guessing that's wrong... Either way, all the features that were created using the Remy Sharp plugin as per the tutorial don't work in WP:

    [158 lines of code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

  6. eaglesoars
    Member
    Posted 2 years ago #

    Is there some special way to use Javascript and jQuery plugins in WordPress that I don't know about?

    Here's the code again, sorry about the breaking of rules:

    http://pastebin.com/qf94FWPj

Topic Closed

This topic has been closed to new replies.

About this Topic