Dear All, I want to insert the Google Adsense code in the Wordpress to show ads, After the title of the post and adfter ad the post content should be not wrapped around the ad. like http://propakistani.pk Please help and reply me to achieve this goal, Very warm thanks and regards.
There are dozens, if not hundred plugins for this for WP. Why don't you just download one of the adsense-plugins and put the shortcode into the template file? If you don't want to do that, just put the adsense code within a <p> or <div> where you want it, in the template files.
That's one method of inserting the ad code, another would be to modify the theme source files and insert it manually. I always insert ad codes manually, as it gives you complete and full control over it, instead of relying on the features/options which a plugin has. Either method will work for what your trying to do though
Uhm... as I said in my answer, he could put the code in via a plugin, or via the TEMPLATE files - which are the theme-files...
Yes PoPSiCLe, for a beginner, plugins will help placing adsense code as per his need and also it saves much time.
Then how can I achieve this goal, without plugin, I tried <br> <div> etc but text is still wrapped around the Rectangle box. I want to show Title of the post AD Post Content
In theme "content.php", find the_title( '<h1 class="entry-title">', '</h1>' ); PHP: or its full php phrase, <?php and ?> After that, place your adsense code <br><br><center> <your adsense code> </center><br><br> HTML: or <br><br> <div style="width:720px;height:90px;"> <your adsense code> </div> <br><br> HTML: It is better, if you use shortcodes
Use this plugin https://wordpress.org/plugins/adsense-plugin/. It creates blocks to display ads on your website.
i recommend wp-insert or easy adsense https://wordpress.org/plugins/wp-insert/ or https://wordpress.org/plugins/easy-adsense-lite/
Hello, Please clarify where you are trying to insert the code. I mean what file you are trying to edit.
Have a look at these advertising management plugin for WordPress http://www.sourcewp.com/best-advertising-management-plugins-for-wordpress/
Many times your wordpress theme will have an ad space section if you visit theme options, otherwise add it to the widget section or simply use one of the thousands of plugins designed for this