Support » Fixing WordPress » google ads – where to put the code (again)

  • I’m trying to put Google ads on my site. I have searched the forum on this but can’t find quite the answer I need.

    I’ve put the ad code just before the last div on the index.php page so the end of the page reads

    `<p><?php _e(‘Sorry, no posts matched your criteria.’); ?></p>
    <?php endif; ?>
    <p align=”center”><?php posts_nav_link() ?></p>
    <script type=”text/javascript”><!–
    google_ad_client = “pub-7466261488630531”;
    google_ad_width = 234;
    google_ad_height = 60;
    google_ad_format = “234x60_as”;
    google_ad_type = “text_image”;
    google_ad_channel = “”;
    google_color_border = “EBDCC6”;
    google_color_bg = “FFFFFF”;
    google_color_link = “f0f0f0”;
    google_color_text = “000000”;
    google_color_url = “8a3207”;
    <script type=”text/javascript”
    <?php get_sidebar() ;?>
    <?php get_footer(); ?>`

    The ads did show up briefly last night but, never content, I tried putting them on some other pages as well. The ads disappeared. I removed the code from the other pages so it is just on index.php but the ads have not come back.

    My question: do I just need to wait for Google to check that my code is correct again or do I have it in the wrong place in the index.php file?

    Site: Spiced-apple

  • The topic ‘google ads – where to put the code (again)’ is closed to new replies.