Simple hooks and adsense

Community Forums Forums General Discussion Simple hooks and adsense

This topic is: not resolved

This topic contains 2 replies, has 2 voices, and was last updated by  braddalton 2 years, 3 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #54057


    Simple hooks is a great way to include a adsense block to single posts. But when i use it it also show the blocks at the category or archive pages. And with adsense only showing 3 blocks at the max i get al lot of white spaces. I know there is a way to show the adsense block only at posts and not at the archive but how do i do that ?




    You can use code this like with a conditional tag for single posts and modify it:

    Change the hook and conditional tags if needed.



    Remove this:

    && has_tag(‘custom’)

    Or tag the posts you want to display Adsense on using a tag named custom.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.