How to link subdomain to domain page?

Discussion in 'WordPress' started by kenshinhimura, Sep 4, 2010.

  1. #1
    I just build my first sites. And i have create a subdomain. My question is how can i link the subdomain to my domain?

    eg : main page of www.domain.com - shows menu HOME , ABOUT, and SUBDOMAIN PAGE.

    How can i add subdomain page at the menu?
     
    kenshinhimura, Sep 4, 2010 IP
  2. vinoth2vinoth

    vinoth2vinoth Peon

    Messages:
    691
    Likes Received:
    7
    Best Answers:
    1
    Trophy Points:
    0
    #2
    Which blog platform you are using? You may need to edit the theme.
     
    vinoth2vinoth, Sep 4, 2010 IP
  3. kenshinhimura

    kenshinhimura Active Member

    Messages:
    366
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    58
    #3
    im using wordpress v.3. Could anyone show me where to edit the theme? i only have a little knowledge on php
     
    kenshinhimura, Sep 4, 2010 IP
  4. itmontreal.ca

    itmontreal.ca Peon

    Messages:
    13
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hello kenshinhimura,
    Congrats on building your first website . Linking to a subdomain is no different than linking to another URL. i.e. the html code would look something like
    <a href="http://subdomain.domain.com">Subdomain that you would like to link</a>
    HTML:
    It is important to note that you always need to use absolute path when linking to a subdomain or any other domain.
     
    itmontreal.ca, Sep 4, 2010 IP
  5. kenshinhimura

    kenshinhimura Active Member

    Messages:
    366
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    58
    #5
    Thank you itmontrel.ca i get what you mean. But how can i make it show at the menu bar?

    i want it to show : HOME, SUBDOMAIN, ABOUT.

    Where should i edit to get it like that?
     
    kenshinhimura, Sep 4, 2010 IP
  6. vinoth2vinoth

    vinoth2vinoth Peon

    Messages:
    691
    Likes Received:
    7
    Best Answers:
    1
    Trophy Points:
    0
    #6
    You don't have to edit theme. Just open your WP control panel and check whether you have an option called "menu" under appearance(Which is there in the left sidebar). In that menu, you can add the link to your subdomain
     
    vinoth2vinoth, Sep 4, 2010 IP
  7. extremephp

    extremephp Peon

    Messages:
    1,290
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    0
    #7
    No themes has an option So :D

    Either, Go to Theme Editors, and insert the HTML code, keeping it in the Same DIV! Or Use the plugin "Page Links To"

    ~ExP~
     
    extremephp, Sep 4, 2010 IP
  8. kenshinhimura

    kenshinhimura Active Member

    Messages:
    366
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    58
    #8
    Thank You all for all your help. Especially too extremephp, i have install the plugin and it works amazingly! This is why i like DP forums..
     
    kenshinhimura, Sep 4, 2010 IP
  9. itmontreal.ca

    itmontreal.ca Peon

    Messages:
    13
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Hello Kenshinhimura,
    If you are using Wordpress you can go to the administrative back-end (i.e. yourdomain.com/wp-admin) . Under appearances, there is Menus. Create a new menu name for your subdomain by typing the name inside the "Menu Name" box. Under theme locations if it says something like "Your theme supports 1 menu. Select which menu you would like to use." You are in luck and you don't need to change anything in the theme. Select the name of the top menu item and add custom links to the menu.
     
    itmontreal.ca, Sep 4, 2010 IP
  10. Jaiminshivcs

    Jaiminshivcs Banned

    Messages:
    506
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    90
    #10
    you have to add link of your subdomain from footer.php or header.php
     
    Jaiminshivcs, Sep 9, 2010 IP