Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi! Thanks ??

    Go to Theme Options > Sidebar, go and add a new area. Let’s say you name the ID “content-ads”.

    When you’ve saved and created the area, go to edit single.php with a child theme and add:

    <?php dynamic_sidebar('content-ads'); ?>

    Above where it says:

    <?php if ( ot_get_option( 'related-posts' ) != '1' ) { get_template_part('inc/related-posts'); } ?>

    And then add the adsense code to the content ads widget area.

    Thread Starter allormo

    (@allormo)

    thanks, it worked fine! ??

    why it wont work on my site?
    ive set the code of the adsense in the title set id like u said edited single php and nothing shows …btw how i can add to the more tab?
    ive tried to add to secondary menu text with the script but couldn’t make it

    Thread Starter allormo

    (@allormo)

    why it wont work on my site?
    ive set the code of the adsense in the title set id like u said edited single php and nothing shows …btw how i can add to the more tab?
    ive tried to add to secondary menu text with the script but couldn’t make it

    maybe you have the ad-block plugin enabled? ??
    try to open a private browser

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘adding adsense code under post’ is closed to new replies.