• 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

Seeing this in Infinity Pro: jQuery.fn.scroll() event shorthand is deprecated

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 › StudioPress Themes › Infinity Pro › Seeing this in Infinity Pro: jQuery.fn.scroll() event shorthand is deprecated

This topic is: not resolved

Tagged: .scroll(function()

  • This topic has 4 replies, 2 voices, and was last updated 1 year ago by asbilly92.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • June 10, 2021 at 9:43 am #504233
    asbilly92
    Participant

    This is being called out as an error:

    $(window).scroll(function() {

    // Run on scroll.
    animateObject();

    });

    What is the 'modern' way to write this it looks correct to me :/ ??

    Thank you!

    June 10, 2021 at 11:36 am #504234
    Anita
    Keymaster

    Link to your site.


    Love coffee, chocolate and my Bella!

    June 10, 2021 at 12:04 pm #504237
    asbilly92
    Participant

    It's on a site that is using the same theme as a customer but is not public, I just use it for testing. I'm using that theme in a few places live though, one of them being:

    https://topsidemarine.biz/ This site would most likely pull the same exact error...the example would be in the front-page.js file.

    Thank you for looking!!

    June 14, 2021 at 10:17 am #504251
    asbilly92
    Participant

    I want to make a correction to my above first post it's not being called an error it's being asked about because the way the function is written is being deprecated; does anyone have any other thoughts on this?

    Thank you!!

    June 14, 2021 at 1:12 pm #504254
    asbilly92
    Participant

    I think the fix is easy. Change to:

    .on( 'scroll', function()

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Log In

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2022 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