user

Hi, I am Stanley!

Hello everybody. I’m Stanley, a free handsome bootstrap theme coded by BlackTie.co. A really simple theme for those wanting to showcase their work with a cute & clean style.

Please, consider to register to our newsletter to be updated with our latest themes and freebies. Like always, you can use this theme in any project freely. Share it with your friends.

Chủ Nhật, 8 tháng 3, 2015

How to Add Adsense Ads After First Post On Blogger Homepage

Displaying Adsense or other ads on blogger is as simple as adding it to WordPress or other blogging platforms. You just copy and paste the code on to the template. But adding it precisely where and how you wan't it can sometimes be tricky and may not display as desired. This is exactly where blogger conditional tags come in handy. They provide us better control over our widgets and other elements.

Among the several conditional tags available for blogger, one is specifically written to target the first post - a good position for displaying ads. And here's how you too can insert Adsense after the first post on your blogger blog:

The Steps:

Login to Blogger Dashboard
Go to Template > Edit HTML
Find this line of code in your template<b:include data="post" name="post">

Add the following code just below the code above<b:if cond='data:blog.pageType == &quot;index&quot;'> <b:if cond='data:post.isFirstPost'>
---- Replace this line with your Adsense Code ----- </b:if> </b:if>

Finally grab a suitable Adsense unit, parse it and add it to the code above


That's it. You can now monitor the newly added ad unit for clicks.