Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Tyrefryer

    (@tyrefryer)

    Hi Diana, thank you for your help and time, and pointing me in the right direction. The error causing the custom JS code not to run was in fact caused by a script prior to this that was written by the plugin SG Optimizer.

    For the benefit of anybody else reading this, this was identified by deactivating all the plugins to find that the script ran and then re-activating them one at a time until the script failed again.

    My apologies for not trying this before!

    Thanks again!

    Thread Starter Tyrefryer

    (@tyrefryer)

    Hi Diana, thanks for your quick response.

    Yes I have got the JS custom code under Where on page to “In Frontend”.

    I think You’re right and the issue might not be with JQuery but with the custom JS code itself not running in the front end. If I put an inline Javascript alert message on the page itself it works both frontend and in admin. If I put an alert in the custom code, it only works when logged in as an administrator, yet the custom code can be seen to be included in the source code of the page? When not logged in as an administrator, non of the functions in the custom JS code that are called from the page (.click, .change etc) work?

    What could cause this?

    Tyrefryer

    (@tyrefryer)

    Well done sideman and thanks for posting the solution to this problem.

    [Moderated]

Viewing 3 replies - 1 through 3 (of 3 total)