How to add new page to self created theme

Discussion in 'WordPress' started by vishalonne, Apr 20, 2012.

  1. #1
    Dear All
    I am new to Wordpress but after 4-5 days of war with WP I am able to create my own theme and tested, working fine.

    I uploaded the image of the theme which I created.
    Now how can I create other pages of this site.
    I already created following pages-
    1. style.css
    2. header.php
    3. index.php
    4. footer.php

    Please check the uploaded txt files for code.

    But now I am stuck how can I create other pages and how to link them with the menu like -
    you all can see 4 link at the top - Top|Profile|contact Us
    Just I need guidance how to create page for these links and how to link those. Please guide me.

    Regrads to all
     

    Attached Files:

    vishalonne, Apr 20, 2012 IP
  2. kiramanic

    kiramanic Peon

    Messages:
    205
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Pages in WP are controlled through the admin, not through the theme. To display a page menu there are two options:

    1) The old-fashioned way, use wp_list_pages() to generate a menu automatically. This has the advantage that it's easy, but the disadvantage that a regular user can't change the order or exclude pages.

    2) The newer way, using wp_nav_menu() to display a custom menu. The one disadvantage is that the menu has to be created manually in the admin but you can change the order of links, add specific pages and not others, link to other places such as individual posts, category pages or even external sites.
     
    kiramanic, Apr 21, 2012 IP
    vishalonne likes this.
  3. raoraj

    raoraj Well-Known Member

    Messages:
    849
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    110
    #3
    i have a suggestion for you.
    use default theme.
    then create blank pages like profile, contact, about us and so on.
    now use some "shortcode plugin" (try searching at wordpress.org)
    shortcode gives you flexibility to create boxes, columns, buttons, tabs and so on.
    i think with the help of shortcode and css one can replicate any theme.
     
    raoraj, Apr 23, 2012 IP
  4. vishalonne

    vishalonne Member

    Messages:
    51
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #4
    Your reply help me lot
     
    vishalonne, Apr 25, 2012 IP