Viewing 5 replies - 1 through 5 (of 5 total)
  • I’m not quite sure what you mean. Could you explain more what you’re trying to do, or link to an example?

    AdSense code is often added to sites via a plugin.

    Thread Starter Polv89

    (@polv89)

    No, i know how to add an adsense code..

    I mean, if i can insert a banner (with adsense code) over article area
    Which file should i edit?

    Thanks

    Depending on where you want to add Ad sense code there are different ways..

    For eg: if you want to add code to blog list on homepage not on single post and single page , you need to edit index.php add after
    <main id="main" class="site-main" role="main">

    but with conditional checked whether you want to display that on pages and
    singular posts or not..

    Like if you want this on only posts list page…

    Add code like this

    if( ! is_singular() ) {
    /* Adsense code here */
    }

    Don’t forget these changes must be done in a child theme otherwise when theme updates it gets overridden.

    Thread Starter Polv89

    (@polv89)

    good..it’s ok

    but with your code i see the text on the site..i have cancelled and added only adsense code..

    and if i want to add adsense code on the left? on the empty space?

    Add Ad sense code just like text you added..

    I don’t get what you mean left side , space
    What’s the site url ..

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Is possible to add adsense code over article area?’ is closed to new replies.