Thanks for the pointer. I was aware of that. But I’m working on a site that isnt using a child theme and had to add a functionality plugin otherwise would lose my changes when the theme updates. Anyway, it’s easy enough to create the functionality plugin manually anyway.
https://css-tricks.com/wordpress-functionality-plugins/
Just remember to add <?php at the top of the file.
Hi, I had the same problem, when I activated the plugin it turned the site to gobbledygook however only when the site was being viewed without being logged on.