Title: Delete Adsense code (multiple lines)
Last modified: December 12, 2017

---

# Delete Adsense code (multiple lines)

 *  [YuriV](https://wordpress.org/support/users/yuriv/)
 * (@yuriv)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/delete-adsense-code-multiple-lines/)
 * Hi,
 * Thanks for the great plugin.
 * Hope you can help us out with this. In the past some editors placed old Adsense
   code directly in our posts. We want to remove all those lines completely. The
   code is something like:
 *     ```
       <div style="width: 265px; float: left;clear:left; margin: 10px; display: none;">
   
       <script type="text/javascript"><!--
       google_ad_client = "pub-############";
       /* 250x250, gemaakt 12-1-10 */
       google_ad_slot = "###########";
       google_ad_width = 250;
       google_ad_height = 250;
       //-->
       </script>
       <script type="text/javascript"
       src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
       </script>
       </div>
       ```
   
 * Is there a way to delete these lines via the plugin? Or do you have other tips
   to delete the code (other than going manually through thousands of posts)
 * Thanks in advance.
 * Yuri

Viewing 1 replies (of 1 total)

 *  [zecke](https://wordpress.org/support/users/zecke/)
 * (@zecke)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/delete-adsense-code-multiple-lines/#post-9807872)
 * That`s very interesting question… Can anybody help us ? Is there is a way to 
   change a block of text by better search replace plugin ?

Viewing 1 replies (of 1 total)

The topic ‘Delete Adsense code (multiple lines)’ is closed to new replies.

 * ![](https://ps.w.org/better-search-replace/assets/icon-256x256.png?rev=2706527)
 * [Better Search Replace](https://wordpress.org/plugins/better-search-replace/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/better-search-replace/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/better-search-replace/)
 * [Active Topics](https://wordpress.org/support/plugin/better-search-replace/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/better-search-replace/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/better-search-replace/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [zecke](https://wordpress.org/support/users/zecke/)
 * Last activity: [8 years, 5 months ago](https://wordpress.org/support/topic/delete-adsense-code-multiple-lines/#post-9807872)
 * Status: not resolved