How to add Google Adsense code in theme ads management or sidebar widgets
If you want to add Adsense (or other js code banners) in widgets use this plugins:
- Open file /inc/theme-functions.php from theme folder in plain text code editor (for example Notepad++, Sublime Text).
- Search for string _banner_show, you will find theme function related to ads display (on image you see carrie_banner_show, it can have another name depending on theme that you use). You need to remove wp_kses_post in this function from code like described on screenshot below:
- If you want to add shortcodes support to ads management areas you can change wp_kses_post to do_shortcode instead of removing this.