OnPoint Plugins

  • Plugins
    • Advanced Sidebar Menu
    • Go Live Update Urls
  • About
    • Services
    • Showcase
  • Blog
  • Contact
  • Support
  • Log In
← Back to support

Page scroll to id breaking accordion

Resolved

Requested: 2 years and 4 months ago

Hi,

I’m using The Team Pro plugin to display some content and it was working fine before, but now if a open a The Team Pro item directly with an url, the Accordion Sidebar Menu Pro also opens up by default which isn’t ideal at all.

For some context, The Team Pro is also a plugin with accordion features but for content, so I’m pretty sure there’s a conflict of sorts going on here.

Could you please take a look and see if you can help?

Thanks in advance!

Plugin: Advanced Sidebar Menu

  1. geral

    2 years and 4 months ago

    Hi again,

    Just noticed this happens with Gutenberg Blocks by Kadence Blocks accordion deep linking, as well.
    Here’s an example: http://novosite.cm-felgueiras.pt/viver/protecao-civil/espaco-covid-19/#comunicados

    Thanks in advance!

     

  2. OnPoint Plugins

    2 years and 4 months ago

    Good Morning Ricardo,

    Looking at your site, I can see 2 JavaScript errors which are breaking this plugin’s accordion functionality as well as other JavaScript functionality on the page.

    Neither of the errors are related to this plugins, but I will see if I can help you track them down.


    This JavaScript is being added directly to the page’s markup. Most likely through a theme setting or similar. It is throwing the following error:

    Uncaught TypeError: $ is not a function

    Most likely, that error can be fixed by changing the $(document) to jQuery(document)


    The next error is a bit more complex and is being thrown in http://novosite.cm-felgueiras.pt/wp-content/plugins/page-scroll-to-id/js/page-scroll-to-id.min.js

    Uncaught Error: Syntax error, unrecognized expression: a[href*=#]:not([href=#]),._ps2id,a[data-ps2id-api=’true’][href*=’#’],.ps2id > a[href*=’#’],a.ps2id[href*=’#’]

    I’m afraid, I can’t offer a simple fix for this one, but I can tell you it’s being caused by the “Page scroll to id” plugin.

    Hope this helps!

  3. geral

    2 years and 4 months ago

    Hi,

    I edited Page scroll to id settings and everything is working fine now.

    Thank you so much for helping!

New Response Cancel reply

You must be logged in to respond. Only PRO members are allowed to respond to support requests.

© 2023 · WordPress Development · Terms Of Service · Privacy Policy · Cookie Policy · Log in

  • Plugins
  • Blog
  • Contact