Close

Account

Documentation

Forum

Menu

AMP auto ads

  • senchy2005
    April 3, 2018 at 7:55 pm #30149

    Hi,

    How can I add AMP auto ads “header” script to amp posts and also second part that goes in “body”?
    If theme does not support this right now is there any workaround till update?

    Best Regards,

    Post count: 9465
    Adek
    April 4, 2018 at 4:29 pm #30172

    Hi senchy2005,

    For the AMP auto ads, you need to do some changes in there. Please try to go replace the content of this file wp-content/plugins/jnews-amp/class.jnews-amp.php with this one here https://pastebin.com/ahHYwXjc

    Then please put this code below to this file (at the bottom) wp-content/themes/jnews/functions.php and don’t forget to replace YOUR_PUBLISHER_ID with your ad plublisher id :

    Let me know if you need some help in there.

    Thank you

You must be logged in to reply to this topic.