Poiesis Web Development » is_single()

Posts Tagged ‘is_single()’

WordPressIn our last post we looked at hard coding your Google Adsense code to the loop in your index page. That will display Adsense on your home page and your archive pages. In this post we’ll look at creating a short code to place adsense in your posts on the fly without having to copy and paste your Adsense code. This requires us to add a function and a short code to the functions.php page of your theme.

Don’t worry, it’s not complicated at all. Just open your functions.php file in your theme’s folder and scroll to the bottom of the file. Here we’ll add the following code:

Continue reading “Adding a short code for Adsense insertion into your post” »

Tags: , ,