WordPress does not allow you to use JavaScript/PHP in unsafe places like widgets or theme content areas.
If you want to add Adsense (or other js/php code banners) in theme use this plugin:
https://wordpress.org/plugins/advanced-ads/
Create ads in this plugin with your JS, PHP or any other code and get shortcode to display this banner in theme. Then paste this shortcode in theme content/text widget or in ads management to display your ads.
Comments
0 comments
Please sign in to leave a comment.