View Full Version : Permanently add ad block to page
08-12-2011, 05:50 AM
I have used my bottom widgets for other content and I would like to add (permanently) the Adsense code for a block ad centered at the end of my page content, right before my "Click here to return to www.mysite.com home page.
I do not want to enter it in the HTML of each page. I would like it to be there as I build each code.
Would appreciate instructions on how to do this.
08-12-2011, 10:06 AM
I would need to know where this is..
"Click here to return to www.mysite.com (http://www.mysite.com/) home page."
Also if you look in Footer.php you'll see we have a section of code commented out for inserting html.
08-12-2011, 12:28 PM
Oh, sorry, Dan. I didn't realize you would need my actual site to answer this.
The site is http://myofascial-pain-syndrome.org/
I did put a medical disclaimer in the footer.php
What I am looking to do now is put the adsense text ad block at the end of every page, perhaps after the social bookmarking thing but before the border above the bottom widgets.
Say, while you are on the page, would you please take a moment to note the upper right google search box- how do I get rid of the 'search' box hanging off there?
Plus, is there any way to get rid of the words 'comments closed'.
Thanks so much, Dan, for taking your time to provide me with some direction.
08-12-2011, 01:31 PM
You had specified above this text. "Click here to return to www.mysite.com (http://www.mysite.com/) home page". This not native to Socrates so it would have been impossible for anyone to answer this without seeing the site.
I'm still not seeing this..
As far as adding adsense code to the bottom of your post.
You're already using 3 ad units so you can't add anymore... and if you did, the bottom of page is not a good location.
The only thing you can put at bottom is an adsense link unit.
Look in index.php for this code and add adsense code below it.
<div class="alignleft"><?php next_posts_link('« Older Entries') ?></div>
<div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div>
08-12-2011, 02:02 PM
I realize I have 3 sets of ads on the posts.
The three ad units on the page that I see are
Google ad for search
Google 728 x 90 monetization bar
Google ads in the left column
I know I can put another ad unit on the PAGE and the bottom of my page content is where I would like to add the ad. I realize that this may not be the ideal location. However, it is on the Adsense 'heat map'.
So, I think where I may be confusing this is by not clarifying that I would like to add the adsense code to my PAGE content.
I have about 8 main pages of content and I would like to monetize those pages as they contain the primary information.
I also realize that adding "click here to return to home page" is not native to Socrates. I just like to add it because this is something I carried over from my SBI days. I think it makes it easier for the reader. Simply a matter of opinion and preference, that's all.
So, with the clarification of the page versus post, I still enter the code as you instructed in index.php ?
08-12-2011, 02:19 PM
You have 3 ad units on the main page.
728x90 In Top Ad Unit
160x60 in Sidebar
300x250 in Post.
(you also have gray background which you should remove and make white, colored text ad backgrounds don't convert.)
I see now that you are referring to page content like.
It would take approximately 3 minutes to manually add the adsense code to the existing page html.
Or you can add to index.php and it will create a white space on your homepage, but work on your pages.
Or I can give you a process to create a custom template which may take 5-10 minutes.
Or you can install an Adsense plugin to use on your pages.
08-12-2011, 02:24 PM
Ok, thanks, Dan.
I think I will just add it to each page manually since once I build those eight pages, I am done with pages. I didn't realize it before I asked the question.
Thanks for letting me know about the ad background color. Dang! I thought it matched so nicely.
Thanks for your time and patience, Dan.
Powered by vBulletin® Version 4.1.10 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.