Oops – IO totally misread Github. I’ve now installed the code into the footer and it does work.
The “Scroll To Anchor” plugin, while not being the initial problem, did get in the way, so I’m now using the Elementor tag. There’s some adjusting to be done, but Lyle posted some code on the Elementor WP page, which may help. I haven’t tried it yet.
Steve