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

How to add homepage links?

Discussion in 'BlackHat Lounge' started by simplyjo, Aug 9, 2010.

  1. simplyjo

    simplyjo Power Member

    Joined:
    Jun 21, 2009
    Messages:
    754
    Likes Received:
    93
    Home Page:
    Friends, I want to know how to add homepage links on blogger/WP platforms ? (Not sidewide/blogroll/blogposts).

    Thanks !
     
  2. hotseo

    hotseo Newbie

    Joined:
    Feb 1, 2010
    Messages:
    27
    Likes Received:
    5

    Hi!

    For wordpress if you want to show the links just on homepage you can use/create a file named links.php.

    and in your theme file (footer.php / sidebar.php etc) where you want to appear your links just on index ,insert this code:

    <?php if (is_home()) { include("links.php"); }?>

    But you have to put the links what you want to appear on the first page in the links.php file located at /wp-content/themes/wordpress-theme-name-here/links.php
     
    • Thanks Thanks x 1
  3. simplyjo

    simplyjo Power Member

    Joined:
    Jun 21, 2009
    Messages:
    754
    Likes Received:
    93
    Home Page:
    Wow. it sounds confusing :(

    But thx a ton anyways. Will try it out.

    Any way to add them using blogger ?