1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to make a link appear on home page only

Discussion in 'Black Hat SEO' started by rock30, Jun 10, 2014.

  1. rock30

    rock30 Regular Member

    Joined:
    Apr 4, 2013
    Messages:
    371
    Likes Received:
    32
    I want to place a backlink on my site home pages in wordpress but how to make it appear on index page only.
     
  2. verilix

    verilix Jr. VIP Jr. VIP

    Joined:
    Sep 18, 2009
    Messages:
    2,879
    Likes Received:
    1,277
    Code:
    <?php if ( is_front_page() ) { ?>
    <a href="link">text</a>
    <?php } else { ?>
    whatever
    <?php } ?>
    Or some variation of it. I'm not at my normal PC now so I can't verify.
     
  3. hatblack

    hatblack Regular Member

    Joined:
    Mar 17, 2009
    Messages:
    273
    Likes Received:
    101
    There is wp plugin for this...WPLM (WordPress Link Management)