WordPress.org

Ready to get started?Download WordPress

Forums

Ads on all pages (2 posts)

  1. Deltahawk12
    Member
    Posted 5 years ago #

    Hey

    I've been wanting to put an ad under my navigation bar on my site for some time. I finally got around to it today, and placed the code inside the index.php right after the get header. The only problem with this is that I find that it only displays ads on the home page. I want them on all pages, including blog posts, search results, pages, etc. How would I go about doing that? Thanks

    EDIT- Nevermind, I figured it out.

  2. lelandf
    Member
    Posted 5 years ago #

    Even though it seems you figured it out, others having the same problem might want to read this article: http://codex.wordpress.org/Template_Hierarchy

    Although it's probably best to include the ad code in a file such as header.php so it displays on all pages.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.