Welcome to WebmasterWorld Guest from 54.158.65.139

Forum Moderators: incrediBILL & martinibuster

adsense code being automatically changed in editor.

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

10+ Year Member



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)

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



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)

10+ Year Member



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)

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



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.

Example:

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

10+ Year Member



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

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month