Jquery scripts and plugins not working

Community Forums Forums General Discussion Jquery scripts and plugins not working

This topic is: not resolved

This topic contains 1 reply, has 1 voice, and was last updated by  spout 2 years, 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #21387


    I’m having trouble with getting scripts to work on my dev site. I’m using Genesis 1.9.1 and the default child theme. I’m attempting very simple things. I just want a dynamic to top link and I want to use smooth scroll. I’ve used these on other sites successfully.

    I tried manually enqueuing scripts (smoothscroll.js, easing.js and jquery.ui.totop.min.js) within functions.php. They were successfully loaded, but didn’t work.

    I tried enqueuing jquery using the following method CSS Tricks:
    if (!is_admin()) add_action("wp_enqueue_scripts", "tm_jquery_enqueue", 11);
    function tm_jquery_enqueue() {
    wp_register_script('jquery', "http" . ($_SERVER['SERVER_PORT'] == 443 ? "s" : "") . "://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js", false, null);

    I tried using the Dynamic to Top plugin. I’m currently trying the jquery Smooth Scroll plugin. Both don’t work.

    I think it’s theme-related because I’ve been able to get these to work on other sites. The only other plugins I’m using are Contact Form 7 and Akismet. Any help would be greatly appreciated.



    Update: the site’s URL has changed to http://teahousemedia.com.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.