A simple question regarding adsense in action hooks
-
Mod
I did exactly the same thing and had the same issue. I wrote a tutorial for it, which you can
radread here:http://blog.kjodle.net/2011/11/04/graphene-action-hook-widgets-an-easy-way-to-modify-your-blog/
I mention a couple of different ways to handle it; you can choose what works for you.
Good luck,
Ken
Ken’s post should work for you. It’s the if statement that is determining whether or not to display on the homepage. The code within the statement should all be treated the same.
Did you use a PHP widget? Did you use the IF statement?
Can you post the code you used into http://www.pastebin.com and provide a link back here for us to look at?
Hi! I did use the PHP widget. Here’s the code:
Mod
You need to escape all the quotation marks in your
echostatement. Just put a “” in front of them.Give this one a try:
FYI:
You could also begin the function with
if (!is_front_page()) {YOUR CODE}This reads “If it is NOT front page, then execute the code. The exclamation point is used for NOT. This helps with not needing an ELSE code; and is just a little “cleaner”.
Viewing 10 posts - 1 through 10 (of 14 total)
- 1
- 2
- You must be logged in to reply to this topic.
