Support » Everything else WordPress » how to put adsensecode into my php-file?

  • it is not as simple as pasting the js-script from googles adsense into the mainpage indexfile index.php ..
    what to ad?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Actually, It is. 🙂

    Just paste the code to where ever you want to add it and your done.

    hmmok then i have made another mistake..but what is it??
    this is how i tried to just pasting the adsensecode in my themes/default/comments.php file… but no success ;(

    /* This variable is for alternating comment background */
    $oddcomment = ‘alt’;

    <!– You can start editing here. –>
    <script type=”text/javascript”><!–
    google_ad_client = “pub-9702519331186124”;
    google_ad_width = 728;
    google_ad_height = 90;
    google_ad_format = “728x90_as”;
    google_ad_channel =””;
    google_color_border = “FFFFFF”;
    google_color_bg = “FFFFFF”;
    google_color_link = “0000FF”;
    google_color_url = “008000”;
    google_color_text = “FF9933”;
    <script type=”text/javascript”
    <?php if ($comments) : ?>


    any ideas?

    no one that got an idea?

    ah got some answers from googlesupport!
    a long time ago i tried adsense on the same domain as i am trying it on now, the difference is this is awhole new site compared to before but some rules still said “NO ADSENSE ON http://WWW.TOP-10-LIST.COM“…
    so in 48hours it should work…

    yezzz it worked now…
    thanx all!!


    Im tryna put Adsense code into my WordPress blog! Though id try putting it the left column. Tried simply adding it to the list of the left div but when i do the page throws up errors,

    heres the code :

    <div id=”left”>

      <li id=”archives”><?php _e(‘DATAISNATURE’); ?>

      <?php wp_get_archives(‘type=monthly’); ?>

    <li id=”categories”><?php _e(‘DATAISNATURE’); ?>

      <?php wp_list_cats(); ?>

    <li id=”meta”><?php _e(‘FEED’); ?>

    </div> <!– End Left –>

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘how to put adsensecode into my php-file?’ is closed to new replies.