• Resolved drywallbmb

    (@drywallbmb)


    I haven’t had time to extensively test this, but I just ran into a bug where if I included a body class in the selector, it failed to work. E.g.

    .home a[rel='m_PageScroll2id']

    Failed to work, but any other ancestor selector would, such as

    header a[rel='m_PageScroll2id']

    I hacked around a bit in the -init.js file to make sure my selectors were right with something like this:

    console.log( $(malihuPageScroll2idInitParams.sel).length );

    Which indicated my elements were in the DOM as I expected, and they were. But the scrolling behavior on them didn’t seem to work. Not sure if it’s a problem with line 24 of the main JS file referencing $(‘body’) directly but I wanted to flag this.

    http://ww.wp.xz.cn/plugins/page-scroll-to-id/

Viewing 1 replies (of 1 total)
  • Plugin Author malihu

    (@malihu)

    This bug is fixed in version 1.5.1. Update plugin to latest version so that you can reference body 🙂

Viewing 1 replies (of 1 total)

The topic ‘Bug if selector references body class’ is closed to new replies.