Is there any way to customize the blogger template to include a bit of code (such as adsense code) within the latest post?
Ah, ok. I looked through the blogger help section but couldn't find what I was looking for. I basically just want to take an adsense code block and implement it in the top post, but not have it in the posts below.
Do you mean at the top of your page? Or after comments or where? Have you seen an example, if so post the url on here.
Haven't seen an example, yet. But basically, what I want to do is place an adsense ad within the latest post on the blog just before the actual post itself. Meaning that ads would be BELOW the latest post title, but ABOVE the post content. I know I can put custom content within each post, but for adsense I couldn't do that since we're limited to 3 adsense code blocks. So I need to limit it to just the first post, ideally.
Basically, I need a variable that gives the lastpostid so I could write something like: <if condition = " <$BlogItemNumber$> > <$LastBlogItemNumber$>"> Insert adsense code </if> The <$LastBlogItemNumber$> doesn't exist, however. Anyone got any ideas?
Hmmmmm.... that's a tricky one... You can make it so that certian elements will be on the main and archive pages, but not the individual posts, but I'm not sure about how to do what you are asking... The closest Blogger tags that I can think of for that would be... <MainPage>This will only appear on the home page</MainPage> <ArchivePage>This will only appear on the archive pages</ArchivePage> <ItemPage>This will only appear on the individual post pages</ItemPage> <MainOrArchivePage>This will appear on both the archive and home pages.</MainOrArchivePage> Code (markup): Hope it helps a little bit, although I'm not sure it's exactly what you were looking for.