• Resolved achengy

    (@achengy)


    Hey,

    I have an advertiser requesting to include their advertisement on the home page only.

    I’m not sure how to do with WordPress.

    Can I get some help?

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Get the adsense Deluxe plug-in and attach the ad to a post that only appears on the home page. Don’t add it to the sidebar

    Thread Starter achengy

    (@achengy)

    I seem unable to use adsense deluxe. Won’t load for me.

    Just a wee bit of theme editing would get the job done. You just need to know where you want the ad. Will it show up in sidebar? Header? Footer? Once you know that, edit the appropriate file in your theme.

    First, check out Conditional_Tags. is_home() ought to work for you.

    <?php if (is_home()) { ?>
        <--! Ad Code as xhtml would go here -->
    <?php } ?>

    If you want to get fancier in run the ad (or other ads) in between the posts, have a look at this tutorial as well: https://www.tamba2.org.uk/wordpress/adsense/

    Thread Starter achengy

    (@achengy)

    Thank you so much!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to add something to just the home page’ is closed to new replies.