Forums

Adsense on every blog posts (12 posts)

  1. blogadeur
    Member
    Posted 4 years ago #

    hi guys, i wish someone could help me with adsense. I saw in another blog that when you open a post an ads by google will show first before the content of the post.

    I've searched on the pluggins directory but had some difficulties finding it. I hope someone can help me. I'd like to start monetizing my blog since I was already approved by Adsense.

    This is the blog that I'm talking about, LINK

    appreciate all the help I can get.

    By the way my blog is http://www.blogadeur.com

    thanks,

  2. Jeremy Clark
    Moderator
    Posted 4 years ago #

    Edit your single.php file in your theme to include the code where you would like it to be displayed.

  3. blogadeur
    Member
    Posted 4 years ago #

    oops, the link has bidvertiser ads but i think its the same as adsense right?

  4. blogadeur
    Member
    Posted 4 years ago #

    hi jeremyclark13, I dont have the code yet. Where can I find it? thanks.

  5. Jeremy Clark
    Moderator
    Posted 4 years ago #

    you have to get the adsense code from google.

  6. savvy1405
    Member
    Posted 4 years ago #

    you could always copy adsense code and save as adsense.php, upload to your site, then just insert: include('adsense.php')in all the index.php files, remeber to direct each one to where you uploaded the file

  7. macsoft3
    Member
    Posted 4 years ago #

    It's probably a plug-in called AdMan. If you really have to know exactly which plug-in, then just write to him/her politely and ask.

  8. blogadeur
    Member
    Posted 4 years ago #

    hi macsoft3, that's what I did. I ask the members here politely. I don't think you have to remind me to be polite because I am. I'm matured enough to know what is right or wrong. I'm sorry guys, but I am just offended.

    Hi jeremyclark13, yes Ma'am I do have the adsense code.

    Hi Savvy1405, I'm not php literate but i have an idea about php. If kindly show me a sample and how to do it, I think I can do do that. :)

  9. intoxination
    Member
    Posted 4 years ago #

    Look for this line in your template single.php file:

    <div id="wp_content">

    After that paste your adsense code in. That will make it show up on the single post view. You can also put it in your index.php file if you want it to show up on the front page.

    There isn't a plugin that will handle this the way you want. The reason is that there's no real plugin hooks to inject the code in that position of the template. Having such a hook would also require everyone update their templates.

  10. blogadeur
    Member
    Posted 4 years ago #

    Hi intoxination, I tried what you said but the Adsense code shows above the Post Title.

    Is there any way to show only the code after the Post title is clicked?

    Appreciate your help. thanks,

  11. blogadeur
    Member
    Posted 4 years ago #

    wheh! after trying & testing it with the blog at least I put the ads on each posts. thanks guys...

    Now, I'd like to put a code on the index page on the heading. please help. thnx.

  12. macsoft3
    Member
    Posted 4 years ago #

    >that's what I did. I ask the members here politely

    I meant the website administrator. Who else has the ultimate answer?

Topic Closed

This topic has been closed to new replies.

About this Topic