1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How to Put Ads on Word Press Home Page Only

Discussion in 'Content Management' started by bushib, Apr 13, 2009.

  1. #1
    Hi there,

    I want to know that how to fix the Text Ads on the Home Page only in Word Press?

    Any help will be appreciated.

    Regards
    bushib
     
    bushib, Apr 13, 2009 IP
  2. SonnyCooL

    SonnyCooL Peon

    Messages:
    1,170
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #2
    edit index.php (theme index.php) :)
     
    SonnyCooL, Apr 13, 2009 IP
  3. rapidcube

    rapidcube Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    hello Bushib,

    I think its depend on your Themes, what themes you are using in your wordpress ?

    maybe you can edit your header.php files if you want to make your ads on your header.. or maybe sidebar.php files if you want to make your ads on your sidebar or maybe footer.php if you want to put your ads on your footer.

    You can find your themes directory inside wp-content/themes directory...

    Good luck
     
    rapidcube, Apr 14, 2009 IP
  4. deluxdon

    deluxdon Catch Me If You Can...!!!™ Staff

    Messages:
    25,481
    Likes Received:
    1,943
    Best Answers:
    32
    Trophy Points:
    480
    #4
    Use below given code for that.

    <?php if(is_home() && $post==$posts[0] && !is_paged()) { ?>
    Your Link or Ad here.
    <?php } ?>
    
    Code (markup):
    DON.
     
    deluxdon, Apr 14, 2009 IP
  5. xpertd19

    xpertd19 Peon

    Messages:
    23
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You can edit index.php for ads
     
    xpertd19, Apr 15, 2009 IP
  6. RockyMtnHi

    RockyMtnHi Active Member

    Messages:
    211
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #6
    If you have a static page as your home page like we do in our Wordpress based web development website then you'll have to edit page.php or the template that your home page uses. If you want the ads in other parts of the page then you'll need to look at footer.php, header.php, sidebar.php or the other files that make uo your home page.
     
    RockyMtnHi, Apr 18, 2009 IP
  7. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #7
    normally editing index.php is enough in most themes
     
    Bohra, Apr 18, 2009 IP