Blocks not behaving the same once logged out

Permalink
I have at least 3 items not behaving the same once logged out and on the public from end.

1. Gallery block lighbox doesn't work once logged out.. works fine whilst logged in
2. Date function dropdown in legacy form wont work once logged out
3. Automatic Email Obfuscator extension doesn't work once logged out.

All this point to js either not loading or overwritten once logged out. I have disabled all js functions in my template to check and still no joy. Not being a programmer I am not sure what to look at to solve my problem.

jolly
View Replies: View Best Answer
Gondwana replied on at Permalink Reply
Gondwana
jquery probably needs to be 'require'd.
jolly replied on at Permalink Reply
jolly
do you mean to do something to the /packages files or in the page templates...
ConcreteOwl replied on at Permalink Best Answer Reply
ConcreteOwl
I think @Gondwana is referring to your themes 'page_theme.php' file, does it have this line of code in it
$this->requireAsset('javascript', 'jquery');
jolly replied on at Permalink Reply
jolly
Yes, I was using a theme from old 5.6 days. Needed to create page_theme.php with relevant code. Also found on anther post... needed to delete theme and reload before any of that new code would work. All 3 items working the same as when logged in now. Thanks