WordPress.org

Ready to get started?Download WordPress

Forums

Correct code needed to add Google Adsense to sidebar.php area - not displaying (5 posts)

  1. spabizgal
    Member
    Posted 7 years ago #

    OK I have installed the Adsense_deluxe_wp_plugin 08. I have added the google code and made it the the default. and when I test int from acmetech site it shows fine.

    NOW....I want to add this to my sidebar1.php

    So right below this:

    <?php endif; ?>

    I tried putting in this:

    <!--adsense#SpaparassiV-->

    Didn't work....

    So then I took that out and tried this:

    <?php adsense_deluxe_ads('Ad_Name'); ?>

    It did not work either..

    I also tried this...

    <?php adsense_deluxe_ads('SpaparassiV'); ?>

    still didn't work!!!!!!!!

    At my wits end...

    I know I have the file the adsense-plugin.php in the right area out of the folder in content/plugins directory.

    I get no errors when initialzing any changes and it shows active.

    What am I doing wrong?

    I am only wanting it to appear on the left side bar and want it centered like everything else in that column.
    To get an idea where it would go, you can look here. http://www.spaparazzi.com

    If someone could be so kind as to paste in this forum, the code that I exactly DO need to insert, so I can just copy and paste it in there, and point out where that needs to go....I would be eternally grateful.

    I was putting it in after the last bit of code on showing for sidebar.php

    I have enabled ads to appear everywhere and still don't see anything in that sidebar. Ugh! Its not displaying in a post but I have not posted to see if its at least showing there, which I doubt.

    HELP!

  2. citeewurkor
    Member
    Posted 7 years ago #

    I think the plugin is supposed to work only in posts and pages. If you want an adsense ad in the sidebar, just place the actual adsense code you get from google adsense where you want it to be.

  3. spabizgal
    Member
    Posted 7 years ago #

    You kidding? I was thinking you could reference it anywhere in the template. Aren't the pages part of the template??

  4. moshu
    Member
    Posted 7 years ago #

    It is useful to use the same language to avoid misunderstandings :)
    In WP we have themes - for design and layout.
    http://codex.wordpress.org/Theme_Development

    Every theme is built up by several template files.
    Minimum 2 files (index.php and style.css) but mosts themes have much more than that; see the link above

    Pages are something different (with capital P)

    Thee plugin options page has detailed intructions how to use it in the content and how to use it in template files... just scroll down and read!

  5. funbucket
    Member
    Posted 7 years ago #

    You can just take the Google code for a vertical ad and place it in the sidebar.php part of the Theme Editor.

Topic Closed

This topic has been closed to new replies.

About this Topic