Welcome to WebmasterWorld Guest from 23.22.220.37

Forum Moderators: incrediBILL & martinibuster

Message Too Old, No Replies

adsense code being automatically changed in editor.

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

Full Member

10+ Year Member

joined:Mar 18, 2002
posts: 220
votes: 2


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.

Example:

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

To:
script async src="/../../../../../pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"
3:45 pm on Dec 12, 2013 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member netmeg is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Mar 30, 2005
posts:12670
votes: 141


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)

Full Member

10+ Year Member

joined:Mar 18, 2002
posts: 220
votes: 2


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)

Senior Member from US 

WebmasterWorld Senior Member netmeg is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Mar 30, 2005
posts:12670
votes: 141


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)

New User

joined:Dec 13, 2013
posts:3
votes: 0


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

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

Example:

script async src="http://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"
1:45 pm on Dec 14, 2013 (gmt 0)

Full Member

10+ Year Member

joined:Mar 18, 2002
posts: 220
votes: 2


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

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members