• Resolved Dave

    (@dave925)


    I’m using Woo Themes Gazette v 2.1.2 with WordPress v 3.0.4 on https://www.gobackpacking.com/Blog

    Under a new advertising deal, I have to add four advertising scripts to the site.

    Home Page
    1 script is for a 468×60 banner to appear (centered) at the very top of the home page, above the logo/header.
    1 script is for a 300×250 banner to appear in the sidebar, above the fold (I’d add it under the Facebook box).

    Rest of Site (but not Home Page)
    Same placements, just on all the other pages except the Home Page.

    Any idea how I can edit the theme files to accomplish this?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The simplest way would be to use someting like

    `
    <?php if(is_front_page) : ?>
    advertising script for the home page
    <?php else : ?>
    advertising script for the other pages
    <?php endif ?>

    you will probably have to drop the code into files such as sidebar.php page.php single.php index.php

    whichever exist in your theme to make sure it shows up in all the right places….

    Thread Starter Dave

    (@dave925)

    Excellent — turns out the “front page” tag was key. I’d received initial advice with “home” instead and that wasn’t doing the trick. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Advertising code on home page vs rest of blog’ is closed to new replies.