• Resolved paulag01

    (@paulag01)


    Since WP Engine upgraded to latest WordPress 5.1 version the collapse/expand part of the TOC is not working. If I click it will not collapse.

    Not sure where to begin troubleshooting this. Can you advise?

    Thank you.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Steven

    (@shazahm1hotmailcom)

    There is a script on the page:

    <script type="text/javascript">
    jQuery(document).ready(function($){
    	//$('a[href=#sources]').attr('data-fancybox','sources');
    	$('a[href=#sources]').attr('data-src','#sources');
    	$('a[href=#sources]').attr('href','javascript:;');
    	
    	$("a[data-src=#sources]").fancybox({
     helpers: {
            overlay: { closeClick: false } //Disable click outside event
        }
    	 });
    });
    </script>

    This script has a fatal error which is breaking all scripts on your page that come after this error which includes the ezTOC script.

    You can view this error by loading the page in Chrome, hitting the F12 key, and clicking the Console tab

    I hope this helps!

    Thread Starter paulag01

    (@paulag01)

    Thank you! I will investigate further. Need to find out if this is from a plugin or something previous developer had in there.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Collapse/Expand not working’ is closed to new replies.