Javascript ad code no longer works after domain is mapped

Hi there,

For some reason the forum is not allowing me to place this in the domain mapping plugin section so could somebody move it there please? Thanks!

After my domain is mapped (ediblenetwork.com/dc to edibledc.com), the javascript based ad code in my sidebar widget no longer works. The ad code works fine on domains that are not mapped. Interestingly it works if you preview a post.

The site is here http://www.edibledc.com if you want to take a look. The ads should be appearing at the top of the right sidebar.

Thank you so much for any help you can give.

Mary

  • Kimberly
    • Champion of Loops

    Hi there Mary!

    Sorry you are having trouble.

    I’ve done some looking around and it do es seem that there is some issue with the way javascript behaves in the presence of Domain Mapping.

    If the plugins_url function uses get_option(‘home’:wink: or get_option(‘siteurl’:wink: to get the address of the site/blog, then the domain maping plugin will convert it to the correct address. If it builds its own then it won’t.

    Can you look into the plugin files and see if you can spot this?

    I’m very sorry but I’m not familiar with the plugin you are referencing.

    Best,

    Kimberly

  • maryo
    • New Recruit

    Hi Kimberly,

    Thanks for the quick reply! I was using the woo adspace widget but I can also just use the standard wordpress text widget (I’ve switched it so the site is using that one now) and it won’t work with that either. It works fine without the domain mapping. Does that help you diagnose the problem?

    Sorry I’m not familiar enough with php to be a lot of help but I did look at the woo adspace widget code and I didn’t see that function.

    Mary