Site logo

Archived topic

Managing Ads in Hooks

2 replies · Started by mariosem on September 25, 2014

Viewing posts 1–3 of 3

Hello,

I need to insert Google Adsense code in single posts. I tried with GPHooks, but all I get is the code in the home page, that is outside the single post. Is there a way to use the hooks in the single post, or do I have to use a third party plugin?

Thanks,

Mario

You can use PHP if conditionals.

<?php if ( is_single() ) : ?>
STUFF IN HERE FOR SINGLE POST
<?php endif; ?>

Marking this as resolved. Respond in here to re-open.

This archived topic is closed to new replies.