• Resolved webujitas

    (@webujitas)


    Hello, the plugin working, but after loading 2nd page, javascript not working, it kills Google Adsense and the AddToAny plugin. I tried a plain alert script, it runs for the first 5 post, but not on the second (and more) page…
    https://dtingpoint.com

    Please help! Thank you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author craigramsay

    (@malinkymedia)

    Hi, Just following up on this, apologies for the delay I assume you’ve disabled the plugin now? If I can help let me know but I’d suggest you’ll need to initialise any Google Adsense on the other pages by using the plugins callback in the settings.

    Thread Starter webujitas

    (@webujitas)

    Hi, I tried, but it does not work. I switched back the plugin, can you check it?
    Thank you!

    Plugin Author craigramsay

    (@malinkymedia)

    You are loading the .js file again in tghe callback this doesn’t initialise the adverts. Looking at your code this is the line that does so you could try that.

    (adsbygoogle = window.adsbygoogle || []).push({});

    You don’t need the script tags in the callback either.

    The plugin is working as it loads more posts but unfortunately I can’t provide much more support as this is related to a 3rd party API.

    Thanks

    Thread Starter webujitas

    (@webujitas)

    Thank You so much, it works!

    Plugin Author craigramsay

    (@malinkymedia)

    Excellent glad it’s working for you! Thanks

    Thread Starter webujitas

    (@webujitas)

    I found the solution for Add2Any too, maybe helping others:

    jQuery( 'body' ).trigger( 'post-load' );

    to the plugins callback in the settings too.

    Thanks again!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Javascript not working’ is closed to new replies.