Anchor links not working properly after theme update
Theme - Betheme Version: 27.1.1
Problems:
1) When click on a direct link anchor - scrolls to section with id not work (solved the problem by adding the code to the file function.php)
add_action( 'wp_enqueue_scripts', 'load_old_jquery_fix', 100 ); function load_old_jquery_fix() { if ( ! is_admin() ) { wp_deregister_script( 'jquery' ); wp_register_script( 'jquery', ( "//ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js" ), false, '1.11.3' ); wp_enqueue_script( 'jquery' ); } }
error in browser console
2) When click on a direct link anchor - scrolls to the top of the page through 2-3 seconds (only mobile version)
links for example:
Comments
Hey,
Please send us the WordPress dashboard and FTP access privately thru the contact form, which is on the right side at http://themeforest.net/user/muffingroup#contact, and we will check what might be the reason.
Notice!
Please attach a link to this forum discussion.
Sending incorrect or incomplete data will result in a longer response time.
Therefore, please ensure that the data you send are complete and correct.
Thanks
Accesses from the site sent
https://educationa3stg.wpengine.com/
I have switched from your child theme to parent to check this problem, and I did not notice any problems with anchor links. Are there any steps to reproduce that?
Best regards
Vice versa
Can you tell me the steps to reproduce that properly, please?
Thanks
When click on this link, an error in the browser console
"Uncaught Error: Syntax error, unrecognized expression: #literacy-kits-pre-k%E2%80%9312"
It is because of the link structure. Instead, it should look like this:
https://educationa3stg.wpengine.com/resources-and-books/#literacy-kits-pre-k-12
Best regards