I tried to add adsense in the home page, but only in the first post, i know is a loop but i need to add a banner only in the first post, not in all the post, this is the code I tried:
Thanks in advanced!
You are using a code from Brad Dalton (WPSites.net). You might want to post your question over to him.
I did write about this on my blog as well as answer a question on these forums which provides the solution however i cannot find it.
Basically it uses a conditional tag for the home page and some other code so it only displays the content on the first post which changes as soon as your publish a new one.
Specializing In StudioPress Child Theme Customization.
500+ StudioPress Tutorials
Do you know where i cant find those variables to create that conditional, I already tried different conditionals, but without success.
I know I need to insert the adsense code after the id=”content”, or only execute the code in the first post
Brandon, Can you recommend me a tutorial where i can learn how to use the genesis framework, please!
You must be logged in to reply to this topic.
Are you a blogger, web designer, developer, or website owner looking to generate more income?
Promote products for the largest and fastest growing online website platform as part of our affiliate program.