How to mass delete adsense javascript code from wordpress site?

Discussion in 'AdSense' started by superb8effect, Nov 17, 2011.

  1. #1
    I used the manual method of inserting adsense code on each wordpress posts. I didn't used any plugin or modifying theme's php file. So it was messy when the number of posts getting bigger. I want to cleanup all my adsense code. What is the easiest way to remove adsense javascript code? It is tiring to delete post by post (manual way). I tried to use Search and Replace plugin, but it just didn't work. Please help.
     
    superb8effect, Nov 17, 2011 IP
  2. JamesColin

    JamesColin Prominent Member

    Messages:
    7,874
    Likes Received:
    164
    Best Answers:
    1
    Trophy Points:
    395
    Digital Goods:
    1
    #2
    Easiest way would be to go directly in the database and manually edit out the javascript from your posts. It's a bit like using the web interface of wordpress, only slightly faster.. But in my opinion you are doomed to do it one by one, or perhaps by coding, like in php but it is a lot of trouble for nothing.. best would be to do it one by one while listening to music or watching a movie.. Like a robot.
     
    JamesColin, Nov 17, 2011 IP
  3. superb8effect

    superb8effect Member

    Messages:
    67
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #3
    The problem is: I have 10,000 posts. It will take weeks to remove adsense code post by post.
     
    superb8effect, Nov 17, 2011 IP
  4. JamesColin

    JamesColin Prominent Member

    Messages:
    7,874
    Likes Received:
    164
    Best Answers:
    1
    Trophy Points:
    395
    Digital Goods:
    1
    #4
    Then writing a custom php code is your best option, 10,000 is too much even for mindless work in front of tv..
    You can ask a coder on freelancer.com or on DP business section (less chances on DP)
     
    JamesColin, Nov 17, 2011 IP