ReferenceError
-
Hello! Why might the error “ReferenceError: jQuery is not defined” appear? The line is “jQuery (document) .ready (function ($)”.
<script > jQuery(document).ready( function($) { if ($('#adsforwp-hidden-block').length == 0 ) { $.getScript("https://site.ru/front.js"); } }); </script>
And another question, if I connect the ad code only for AMP pages or only on certain pages, how can I remove the plugin script output on all other pages where there are no ad units ?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘ReferenceError’ is closed to new replies.