How to Create Hompage link in Wordpress ?

Discussion in 'WordPress' started by avatarmaddy, Nov 16, 2010.

  1. #1
    hi friends,

    Can anyone tell me how to create a hompage link ?(which should appear only on home page not as sitewide) .......

    I am using wordpress ,,,,, hope you all will share the information with me

    Thanks
     
    avatarmaddy, Nov 16, 2010 IP
  2. radiant_luv

    radiant_luv Peon

    Messages:
    1,327
    Likes Received:
    34
    Best Answers:
    1
    Trophy Points:
    0
    #2
    Is this what you want? You can choose a static page "Home Page" as front page; the option is available at Settings -> Reading
     
    radiant_luv, Nov 16, 2010 IP
  3. avatarmaddy

    avatarmaddy Member

    Messages:
    355
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    28
    #3
    Mate i want to place a link on the homepage ......i have a homepage but i want to place a link on the right side of my homepage........Is it needs coding or is there any options available in Wordpress...?
     
    avatarmaddy, Nov 16, 2010 IP
  4. dsimi

    dsimi Member

    Messages:
    265
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    48
    #4
    Link in home page only and home menu link.

    <?php if(is_home()) { ?> <a href="<?php echo get_option('home'); ?>/">Home</a> <?php } ?>
    PHP:
    Why do you want the menu only on home page.
     
    dsimi, Nov 16, 2010 IP
  5. avatarmaddy

    avatarmaddy Member

    Messages:
    355
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    28
    #5
    hi mate ........i want to add a html link in the existing homepage of my site...........
     
    avatarmaddy, Nov 16, 2010 IP
  6. dsimi

    dsimi Member

    Messages:
    265
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    48
    #6
    Download index.php from your theme folder for add html menu. If u want to add in side, download sidebar.php

    You can add html menu there.
     
    dsimi, Nov 16, 2010 IP
  7. radiant_luv

    radiant_luv Peon

    Messages:
    1,327
    Likes Received:
    34
    Best Answers:
    1
    Trophy Points:
    0
    #7
    Some themes has option to add widgets on Home Page.
     
    radiant_luv, Nov 16, 2010 IP
  8. Network Interaction

    Network Interaction Peon

    Messages:
    47
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    it's should work for you

    <?php if(is_home() && !is_paged()) { ?>
    <li class="widget"><h3>Resource Links</h3>
                            <ul class="linkcat">
    <li>Put your link here</li>
    
                            </ul>
                        </li>
    
    
    <?php } ?>
    PHP:

    insert those code in your sidebar.php
     
    Network Interaction, Nov 18, 2010 IP
  9. avatarmaddy

    avatarmaddy Member

    Messages:
    355
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    28
    #9
    Hi Mate

    Thanks you very much for your code man............it is working...........Thanks a lot


     
    avatarmaddy, Nov 27, 2010 IP