Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1263452
    form2function
    Participant

    Hi there!

    I’m currently having a few different issues with a site under development, after updating to the latest versions. I might make separate posts for these issues, but first I wanted some assistance with a jQuery issue we’re having.

    Right now we have a jQuery in Customizer that overrides the mousewheel to scroll to sections of the site. This works fine in a fiddle, and also in Customizer when previewing the site, but doesn’t seem to work on the site itself.

    Does anyone have any ideas on why this might not be working? Any assistance would be appreciated.

    #1263456
    form2function
    Participant
    This reply has been marked as private.
    #1263460
    Rad
    Moderator

    Hi there,

    Thanks for writing in.

    What should it do and what purpose? X theme has its own set of scrolling effect too and you may need to use off() to unregister some effect or event.

    Please provide your site’s URL, and the URL where it’s working. I can’t promise a solution, but I’ll try it first to see if it’s possible.

    Thanks!

    #1263471
    form2function
    Participant
    This reply has been marked as private.
    #1263481
    Rad
    Moderator

    Hi there,

    You don’t have to add <script></script> in customizer’s custom javascript. It’s purely for javascript only and not for embed codes.

    I removed them and fixed your code and it’s now working 🙂

    From

    jQuery(document).ready(function() {

    to

    jQuery(document).ready(function($) {`

    Cheers!

    #1263487
    form2function
    Participant

    Aha! Quick and breezy, thanks so much Rad!

    I’ll keep you posted with any other issues we’re having since the latest updates, but for now you’ve been of great help as always.

    Cheers!

    #1263490
    Rad
    Moderator

    You’re so much welcome! Sure, please let us know 😉

  • <script> jQuery(function($){ $("#no-reply-1263452 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>