[Support request] Separate containers before the end of the article.

Home Forums Support [Support request] Separate containers before the end of the article.

Home Forums Support Separate containers before the end of the article.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #748564
    Kevin

    I wanted separate containers in the articles before arriving in the comments, I wanted to separate the containers in the time that arrives in the related articles, but I can not and I have no idea what to do.

    My site is skdesu.com, open an article and see what I’m trying to explain. I used Google translator, maybe it’s confusing.

    Related articles are being placed through Ads ADS, I get to put some CSS in it. I do not know what or what to do to separate the container in that place, I tried to copy </ article> but it did not work.

    #748844
    David
    Staff
    Customer Support

    Hi there,

    how have you added the ADS related posts to your post?

    #749459
    Kevin

    Adsense Google code, but I forgot to also use the jetpack. So the correct thing is to create a new container from the jetpack.

    #749489
    David
    Staff
    Customer Support

    So have you found a solution?

    #749490
    Kevin

    I have no idea how to do this.

    #749493
    David
    Staff
    Customer Support

    So, Adsense provides you with some HTML / Code to add to your posts.
    We can hook this into post template like so:

    1. Go to Appearance > GeneratePress and make sure you have the Elements Module activated.
    2. Appearance > Elements > Add New > Hook
    3. Add this markup to the Hook with your adsense code within:

    <div class="grid-container adsense-related-posts">
        Add your script here
    </div>

    4. Then in the hooks field. Select ‘before comments container’
    5. Go to the display rules tab and select Posts as your rule. Then save.

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