• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Jquery scripts and plugins not working

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Jquery scripts and plugins not working

This topic is: not resolved

Tagged: javascript, jquery, plugins, scripts

  • This topic has 1 reply, 1 voice, and was last updated 10 years ago by spout.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • February 19, 2013 at 12:10 pm #21387
    spout
    Member

    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_deregister_script('jquery');
    wp_register_script('jquery', "http" . ($_SERVER['SERVER_PORT'] == 443 ? "s" : "") . "://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js", false, null);
    wp_enqueue_script('jquery');
    }

    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.

    February 22, 2013 at 7:24 pm #22328
    spout
    Member

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

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble