Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1258886

    Hello,

    A while ago I built a site which had a table of contents in the sidebar. It worked really well, because we were able to link from other pages as well as the page the sidebar was on. For example, if I was on the page, clicking on “sub item 1” would scroll to that part. Also, if I was on another page and clicked a link called /page/#sub-item-1 it would go to the page and scroll down to that part.

    We’re just picking the project back up, and something has changed. If I now click on /page/#sub-item-1 the sidebar widgets are totally missing.

    I’ve included a link in the private area to the site to demonstrate the issue. It was working, but it was about a year ago

    Can you please help figure out what’s going on?

    Thanks in advance.

    #1258890

    Hi,
    After doing a bit of reading I installed Enable jQuery Migrate Helper and it seems to have fixed the problem.

    The error is detailed below

    https://OURWEBSITE/wp-content/plugins/page-scroll-to-id/js/page-scroll-to-id.min.js: Attribute selector with \'#\' must be quoted: a[href*=#]:not([href=#]),._ps2id,a[data-ps2id-api=\'true\'][href*=\'#\'],.ps2id > a[href*=\'#\'],a.ps2id[href*=\'#\']

    The plugin actually noticed and gave me the fix which was to change the
    a[href*=#]:not([href=#]) to a[href*=’#’]:not([href=’#’])

    Hope this is of some use to someone!

    #1258983

    Hi,

    I’m glad this was resolved. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Help with disappearing sidebar’ is closed to new replies.