Title: Patch if ADS not working
Last modified: August 19, 2016

---

# Patch if ADS not working

 *  Resolved [maurizio04](https://wordpress.org/support/users/maurizio04/)
 * (@maurizio04)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/patch-if-ads-not-working/)
 * After the pay version of the theme, only patches on the last 3 month, and some
   of them block ADS…
    Anyway, just delete from functions.php these lines:
 *     ```
       $input['evl_space_1'] = wp_filter_post_kses( $input['evl_space_1'] );
        $input['evl_space_2'] = wp_filter_post_kses( $input['evl_space_2'] );
        $input['evl_space_3'] = wp_filter_post_kses( $input['evl_space_3'] );
        $input['evl_space_4'] = wp_filter_post_kses( $input['evl_space_4'] );
        $input['evl_space_5'] = wp_filter_post_kses( $input['evl_space_5'] );
        $input['evl_space_6'] = wp_filter_post_kses( $input['evl_space_6'] );
        $input['evl_space_7'] = wp_filter_post_kses( $input['evl_space_7'] );
        $input['evl_space_8'] = wp_filter_post_kses( $input['evl_space_8'] );
        $input['evl_space_9'] = wp_filter_post_kses( $input['evl_space_9'] );
       ```
   
 * -m [http://www.blogma.it](http://www.blogma.it)

Viewing 13 replies - 1 through 13 (of 13 total)

 *  [Chip Bennett](https://wordpress.org/support/users/chipbennett/)
 * (@chipbennett)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/patch-if-ads-not-working/#post-2064265)
 * No idea what Theme you’re talking about, but the code you pasted doesn’t remove
   ads.
 *  Thread Starter [maurizio04](https://wordpress.org/support/users/maurizio04/)
 * (@maurizio04)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/patch-if-ads-not-working/#post-2064307)
 * Evolve.
    that code will clean up some special characters that AdSense use. Try
   put an Adsense and click save, the code will not be memorized. The code on the
   website do not have those lines….
 *  [Chip Bennett](https://wordpress.org/support/users/chipbennett/)
 * (@chipbennett)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/patch-if-ads-not-working/#post-2064322)
 * The `wp_filter_post_kses()` function ([Codex ref](http://codex.wordpress.org/Function_Reference/wp_filter_post_kses))
   filters out any HTML tags that are not allowed to be used in Posts, which would
   include script tags.
 * So, it’s not that the code above is removing _ads_; it’s probably just filtering
   out the `<script>` tags (and thus, everything in them).
 * That said: since the `evl_space_1` through `evl_space_9` text inputs are explicitly
   intended to display ads, it is reasonable to expect that `<script>` tags shouldn’t
   be filtered out. I would recommend contacting the developer, as this might well
   be considered a “bug”.
 * But, I would **strongly recommend against** removing those lines entirely; doing
   so presents a potential security issue for untrusted data entry, as such data
   would be no longer validated/sanitized at all.
 *  Thread Starter [maurizio04](https://wordpress.org/support/users/maurizio04/)
 * (@maurizio04)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/patch-if-ads-not-working/#post-2064328)
 * Yes, it is a bug.
    On ver123 from the web site these lines are not present. I
   was just helping people that will use the dashboard install. These lines come
   and go……
 *  Thread Starter [maurizio04](https://wordpress.org/support/users/maurizio04/)
 * (@maurizio04)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/patch-if-ads-not-working/#post-2064623)
 * [@chip](https://wordpress.org/support/users/chip/)
    I was talking about the total
   absence of update of the free Evolve. Every time there is a Pro version of a 
   theme obviously all the new features (and the support) will go to that one. A
   single Evolve and a small payment for the support seems to me a better way…..
   Anyway if anybody had done custom work on Evolve I’m happy to share mine for 
   free. -m at [http://www.blogma.it](http://www.blogma.it)
 *  [luxsub](https://wordpress.org/support/users/luxsub/)
 * (@luxsub)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/patch-if-ads-not-working/#post-2064774)
 * sooo, should i remove those lines??
 *  Thread Starter [maurizio04](https://wordpress.org/support/users/maurizio04/)
 * (@maurizio04)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/patch-if-ads-not-working/#post-2064775)
 * if you wants Google ads yessss..
    or get Evolve from the web site, the lines 
   are already deleted…
 *  [johnrajasingh](https://wordpress.org/support/users/johnrajasingh/)
 * (@johnrajasingh)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/patch-if-ads-not-working/#post-2064799)
 * I am having a tough time cantering my google ad with this theme, can someone 
   help?
    [http://www.amadeupstory.com/](http://www.amadeupstory.com/)
 *  Thread Starter [maurizio04](https://wordpress.org/support/users/maurizio04/)
 * (@maurizio04)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/patch-if-ads-not-working/#post-2064800)
 * The new code still cut out some javascript code from Google Ads.
    You need to
   delete the lines in the first post.
 * On IE8 your site has some of the bugs listed in the news post.
 *  [johnrajasingh](https://wordpress.org/support/users/johnrajasingh/)
 * (@johnrajasingh)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/patch-if-ads-not-working/#post-2064801)
 * @ maurizio04 Thank you, that took care of the google ad problem. [http://www.amadeupstory.com/](http://www.amadeupstory.com/)
   
   Now i am on the look out for the “News Post” for the bug list.
 *  [johnrajasingh](https://wordpress.org/support/users/johnrajasingh/)
 * (@johnrajasingh)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/patch-if-ads-not-working/#post-2064802)
 * I have a ad in ad box “Ad Space 2 – Header Bottom”
    this has more spacing at 
   the bottom but is very close to the content above how can i center this? is this
   a bug too? [http://www.amadeupstory.com](http://www.amadeupstory.com) Where can
   i find a bug list?
 *  [johnrajasingh](https://wordpress.org/support/users/johnrajasingh/)
 * (@johnrajasingh)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/patch-if-ads-not-working/#post-2064803)
 * I was just testing this theme on safari and my ads are not showing up on safari.
   
   Is this a bug too? [http://www.amadeupstory.com](http://www.amadeupstory.com)
 *  Thread Starter [maurizio04](https://wordpress.org/support/users/maurizio04/)
 * (@maurizio04)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/patch-if-ads-not-working/#post-2064804)
 * same code for all browser.
    just cut it out.
 * the CSS part is different for diplay stuff on IE and the other.
    tested also 
   with IE9 but buggy, it only work in compatibility mode (ie7)

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘Patch if ADS not working’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/evolve/4.3.7/screenshot.png)
 * evolve
 * [Support Threads](https://wordpress.org/support/theme/evolve/)
 * [Active Topics](https://wordpress.org/support/theme/evolve/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/evolve/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/evolve/reviews/)

 * 13 replies
 * 4 participants
 * Last reply from: [maurizio04](https://wordpress.org/support/users/maurizio04/)
 * Last activity: [14 years, 2 months ago](https://wordpress.org/support/topic/patch-if-ads-not-working/#post-2064804)
 * Status: resolved