![]() | | ||||||||
| | #1 |
| HyperActive Warrior War Room Member Join Date: Dec 2005 Location: , , USA.
Posts: 482
Thanks: 61
Thanked 23 Times in 22 Posts
|
I'm having a 400+ page website redesigned with wordpress. What is the best way to implement adsense on all the pages? Is there a plugin that will place adsense on all the pages? Input appreciated... Adam |
| | |
| | #2 |
| Advanced Warrior War Room Member Join Date: Dec 2005 Location: , , USA.
Posts: 785
Thanks: 1
Thanked 3 Times in 3 Posts
|
I don't use any of the available plugins, but you will find plenty in the plugins directory. Just pick one of the highly rated ones. I find it best to just edit the single.php, index.php, header.php, and/or single.php page and put the code in myself. You can do it right within wordpress or just use notepad and an ftp program. I don't trust a lot of the plugins since they usually have leaks in them. Make sure you don't put the adsense just below the title of the article, as this is not really allowed. Insert the code after the "content" line. I wrote a small bit of code in php to insert the adsense 300 characters deep into the post so it goes a few lines down from the title. It also looks nicer being embedded into the post rather than on the side or bottom. |
| | |
| | #3 | |
| Watching you... War Room Member Join Date: Dec 2008 Location: Waterdown, Ontario, Canada
Posts: 5,963
Blog Entries: 2 Thanks: 1,574
Thanked 2,712 Times in 1,651 Posts
| Quote:
(because I don't use plugins either) | |
| In the first half of the year we are supposed to work for the taxman. I think that's a mistake. Help me to get rid of the taxman ASAP - thanks! (You, too, should make less mistakes!) | ||
| | |
| | #4 | |
| Advanced Warrior War Room Member Join Date: Dec 2005 Location: , , USA.
Posts: 785
Thanks: 1
Thanked 3 Times in 3 Posts
| Quote:
$code = 'Your adsense code here'; $text = get_the_content(); $text = substr_replace($text, $code, 300,0); echo $text; The code I actually use does a little more by adjusting for the length of the content, adding some white space around the adsense, and some other things I need. But the above code should work fine as is. | |
| Last edited by rob6188; 06-01-2009 at 12:17 AM. Reason: make the code clearer | ||
| | |
| | #5 |
| Watching you... War Room Member Join Date: Dec 2008 Location: Waterdown, Ontario, Canada
Posts: 5,963
Blog Entries: 2 Thanks: 1,574
Thanked 2,712 Times in 1,651 Posts
|
Thank you very much! Yes, I see now (I can read PHP but can't write one single line of it...) Thanks again and have a nice evening. |
| In the first half of the year we are supposed to work for the taxman. I think that's a mistake. Help me to get rid of the taxman ASAP - thanks! (You, too, should make less mistakes!) | |
| | |
| | #6 |
| Active Warrior Join Date: May 2008 Location: NW Indiana
Posts: 36
Thanks: 0
Thanked 8 Times in 8 Posts
|
Adam, I would look up adsense in the wordpress plugin portion of the site, and pick the highest rated ones. You will prolly get code you can stick in the sidebar of the site that will show up on every page, but as far as posting in every post, you will probably have to insert the code yourself on every post. Don't forget to keep in mind the Google TOS regarding how many ads you can have per page. Hope that helps, To Your Success, Clint Anderson |
| | |
| | |
| | #7 | |
| jigsaw2order.com War Room Member Join Date: Mar 2009 Location: Thailand
Posts: 181
Thanks: 17
Thanked 20 Times in 19 Posts
|
I've just setup adsense on a WP blog using plugins and actually use two that work really well together. I use Advertising Manager and Whydowork Adsense. I probably don't need to use two separate plugins but it was the easiest way for me to do what I wanted. They are both really easy to implement for both sidebar and inpost adsense blocks. Quote:
| |
| | ||
| | |
| | #8 | |
| Advanced Warrior War Room Member Join Date: Dec 2005 Location: , , USA.
Posts: 785
Thanks: 1
Thanked 3 Times in 3 Posts
| Quote:
I should rephrase my previous comment to say "Some plugins have leaks" and not "most". Most of the plugins I found at wordpress are pretty clean. But I've only used a dozen or so in the past. | |
| | |
| | #9 |
| HyperActive Warrior War Room Member Join Date: Nov 2007 Location: Writers heaven
Posts: 292
Thanks: 2
Thanked 30 Times in 12 Posts
|
there are many adsense plugins.. use all i one yahoo and adsense plugin.. it gives all th eoption... its the best out of all |
| | |
| | |
| | #10 |
| Mage War Room Member Join Date: May 2009 Location: Chiang Mai
Posts: 484
Thanks: 20
Thanked 208 Times in 77 Posts
|
this is the best one I found hands down after testing about 6 of them, including the "top ones in the plugin directory" WhyDoWork Adsense Plugin After you use it you will see why. |
| | |
| | |
| | #11 |
| HyperActive Warrior War Room Member Join Date: Dec 2005 Location: , , USA.
Posts: 482
Thanks: 61
Thanked 23 Times in 22 Posts
|
Thanks everyone...truly appreciate the advice. Adam |
| | |
| | #12 |
| Warrior Member |
I looked on yahoo for the plugin and couldn't find it. do you know wherre to look?
|
|
Rocky McDaniel is an internet marketer living in Memphis. To learn about his amazing musical products and valuable teaching tools click here http://inspiringmomentum.com/rockymcdaniel | |
| | |
![]() |
|
| Tags |
| adsense, plugin |
| Thread Tools | |
| |
![]() |