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 do I... add a link to JUST the homepage of my blog?

Discussion in 'WordPress' started by DomainLoot, Jan 21, 2008.

  1. #1
    i am using a WP blog (i downloaded the template, it has an encrypted footer).

    i want to add a link so it's only on the HOMEPAGE.

    how do i do that? (simple way please)

    rep for help. :) :) :)

    i am offline for the next 8 hours, but will respond!
    SEMrush
    THANKS!
    mike
     
    DomainLoot, Jan 21, 2008 IP
    SEMrush
  2. MarRome

    MarRome Peon

    Messages:
    865
    Likes Received:
    92
    Best Answers:
    0
    Trophy Points:
    0
    #2
    MarRome, Jan 21, 2008 IP
    1 person likes this.
  3. MTbiker

    MTbiker Well-Known Member

    Messages:
    2,536
    Likes Received:
    123
    Best Answers:
    0
    Trophy Points:
    170
    #3
    Edit the index.php file to include the link.

    Or you can put it anywhere and use this code:

    <?php if ( is_home() ) { ?>
    text goes here
    <?php } ?>
    PHP:
    That code could go in the sidebar or something and it only displays on the homepage.
     
    MTbiker, Jan 21, 2008 IP
    1 person likes this.
  4. DomainLoot

    DomainLoot Guest

    Best Answers:
    0
    #4
    Thank you.

    I'll take a look, and report back. :)

    Mike
     
    DomainLoot, Jan 21, 2008 IP