homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Google / Google AdSense
Forum Library, Charter, Moderators: incrediBILL & jatar k & martinibuster

Google AdSense Forum

adsense code being automatically changed in editor.

 3:43 pm on Dec 12, 2013 (gmt 0)

When I started changing over to Async ads my editor started adding extra code automatically when saved pressed /../../../../.. replacing the // What is causing this? Any help would be appreciated. Now Editor changing both code types which is causing ads not to show.


script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"

script async src="/../../../../../pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"



 3:45 pm on Dec 12, 2013 (gmt 0)

Which editor are you using? That looks like something Front Page might do (although the last version supposedly fixed that)

Afraid my best suggestion is try another editor, or find a way to do an include file.


 3:57 pm on Dec 12, 2013 (gmt 0)

Thanks for the reply NM

Expressions 4.

Has always worked ok in past just started when I decided to change to Async.


 4:16 pm on Dec 12, 2013 (gmt 0)

Well they changed the code and possibly Expression doesn't understand it. The first thing you might want to do is go look at the IntelliSense and make sure nothing's turned on there that could be messing with the code.

Ultimately, I think you're going to have to get another editor, or place it in some other way. Or else go back to the non async AdSense. Expression is a sunset product now; there aren't going to be any more updates or any support. So it may be best to find something else.

Before I switched over to WordPress, I used PHP includes to place the AdSense code. Are you familiar at all with PHP?


 6:59 pm on Dec 13, 2013 (gmt 0)

Replace "//" with "http://"

Your editor is likely trying to fix what it thinks is a malformed URL.


script async src="http://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"


 1:45 pm on Dec 14, 2013 (gmt 0)

Hey "Dude" Thank you very much.
That fixed it.
Also kept me with-in the KISS principle.
And welcome to WebmasterWorld

Global Options:
 top home search open messages active posts  

Home / Forums Index / Google / Google AdSense
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved