[Resolved] Include JS code (Adsense code) inside Post content

Home Forums Support [Resolved] Include JS code (Adsense code) inside Post content

Home Forums Support Include JS code (Adsense code) inside Post content

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1439282
    Chitika

    Hello.
    I would like to include JS code (which is essentially Adsense code) inside post content.
    In the following positions.

    1. After post title
    2. After para 2.
    3. After para 4.

    Is it possible with GP WITHOUT using any plugin.

    #1439309
    David
    Staff
    Customer Support

    Hi there,

    1. You can use a Hook Element:

    https://docs.generatepress.com/article/hooks-element-overview/

    It includes a link to the Visual guide so you can see which Hook to use.

    2. and 3. It is possible with custom development – we recommend using this plugin:

    https://en-gb.wordpress.org/plugins/advanced-ads/

    #1443743
    Chitika

    Thanks, I will settle for a plugin. It looks more easy that way.

    #1443780
    David
    Staff
    Customer Support

    Yep – it really is 🙂

    Glad to be of help.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.