• Resolved Sjors

    (@sjource)


    Hello gVectors Team,

    First of all, thanks for making this plug-in. I really like it so far. I do have a small problem though. I get a ReferenceError: jQuery is not defined when I look at the console.

    I think it’s because my theme (GeneratePress) doesn’t use jQuery by default while WPForo tries to load this script.

    <script type="text/javascript">
    			jQuery(document).ready(function($){
                    var wpforo_wrap = $('#wpforo-wrap');
    				$(wpforo_wrap).on('click','.attach_cant_view', function(){
                       wpforo_notice_show("<p>You are not permitted to view this attachment</p>");
    				});
    			});
    		</script>

    I’m not 100% sure what this script does, but if it prevents guests from viewing attachments, then I don’t think I need it. Everyone, including guest, are allowed to view them. Is there a way to safely remove this script or is it necessary for something else and do I need to load jQuery somehow?

    Thanks!

    • This topic was modified 7 years, 1 month ago by Sjors.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘ReferenceError: jQuery is not defined.’ is closed to new replies.