That did the job, thank you so much Simon and Maximus
If I understand correctly, I can delete the whole set of lines so that jquery doesn’t get loaded from an external source (just tried that, and everything seems to be working fine) :
if (!is_admin()) add_action("wp_enqueue_scripts", "my_jquery_enqueue", 11);
function my_jquery_enqueue() {
wp_deregister_script('jquery');
wp_register_script('jquery', "http" . ($_SERVER['SERVER_PORT'] == 443 ? "s" : "") . "://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js", false, null);
wp_enqueue_script('jquery');
}
The only thing that is not functioning anymore is a script for smooth scrolling on hover I had put on the slides and on various other pages :
<p><script>
$(function() {
// code from https://css-tricks.com/snippets/jquery/smooth-scrolling/
$('a[href*=#]:not([href=#])').click(function() {
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
var target = $(this.hash);
target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
if (target.length) {
// stops scrolling
$('html,body').on("scroll mousedown wheel DOMMouseScroll mousewheel keyup touchmove", function(){
$('html,body').stop();
});
// change top-x to create the additional off set and following number to specify scroll delay
$('html,body').animate({
scrollTop: target.offset().top-20
}, 600);
return false;
}
}
});
});
</script></p>
If I put this script back on the slides, they disappear once again. And on the other pages where the script is present, it is not functioning anymore. Certainly has to do with the wrong way I use jquery, as you two pointed out (not being a developer, I tend to cut and paste what I find on the net ;-). I will try to figure out. If you have any advice, I’d be glad to hear
Thanks once again, happy to find my slides back ??