• Resolved mattspaur

    (@mattspaur)


    On ligadata.com/home and ligadata.com/use-cases, each page has a desktop section and a mobile section. Columns in the homepage section have anchor links to corresponding sections on the use cases page. For example, the desktop homepage for financial services uses the anchor link to jump to the financial services section on the use cases page. My problem is that the links are working between the mobile version sections on the respective pages, but not for the desktop version of the sections.

    Divi / Elegant Themes support proved that turning off Autoptimize restores the function of the anchor links for the desktop version. They pointed out we had warnings saying “Uncaught ReferenceError: jquery is not defined.” I’ve searched your knowledge base and seen the advice to make sure js/jquery/jquery.js is included in or optimization exclusion list, and it is excluded.

    Any ideas for how to fix this so that it works with Autoptimize turned on?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    jQuery is now js/jquery/jquery.min.js, make sure that is excluded (as well).

    additionally I see you have WP Optimize also to JS optimization, having 2 plugins do JS (or CSS) optimization can break things so I would advise to configure WPO (which is great) _not_ to touch your JS/ CSS as Autoptimize is handling that job.

    hope this helps,
    frank

    Thread Starter mattspaur

    (@mattspaur)

    Ah, great catch. Thanks. I’ve just taken over managing this site and hadn’t caught that. I turned off JS and CSS options in WP-Optimize, turned on Autoptimize, and the site is working properly.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    you’re welcome, feel free to leave a review of the plugin and support here! ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Autoptimize selectively breaking anchor links’ is closed to new replies.