Hi Yellow Swordfish,
OK, I have removed the CDN call, missed that bit in the article (!), and instead have hard coded the call in the functions:
function register_jquery() {
wp_deregister_script( ‘jquery’ );
wp_register_script( ‘jquery’, ‘http://www.mysite.com/wp-includes/js/jquery/jquery.js’);
wp_enqueue_script( ‘jquery’ );
}
add_action(‘wp_enqueue_scripts’, ‘register_jquery’);
Which results in the following being rendered in the head of the standard page:
<script type=’text/javascript‘ src=’http://www.mysite.com/wp-includes/js/jquery/jquery.js?ver=3.3.1‘></script>
To make sure, I have turned off the Yoast plugin.
Again, Fancybox using jQuery fires off with no issues but as all the cases before, in SP it results in the same effect of clicking the ‘add reply’ returning ‘void’ (ie. not working at all).
When I check the head on a forum page though, it seems SP has added an additional jQuery call:
<script type=’text/javascript‘ src=’http://www.mysite.com/wp-includes/js/jquery/jquery.js?ver=3.3.‘></script>
<script type=’text/javascript‘ src=’http://www.mysite.com/wp-content/plugins/simple-press/resources/jscript/checkboxes/prettyCheckboxes.js?ver=3.3.1‘></script>
<script type=’text/javascript‘ src=’http://www.mysite.com/wp-content/plugins/simple-press/forum/resources/jscript/print/jquery.jqprint.js?ver=3.3.1‘></script>
<script type=’text/javascript‘ src=’http://www.mysite.com/wp-includes/js/jquery/ui/jquery.ui.core.min.js?ver=1.8.16‘></script>