SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Guru
    Join Date
    Oct 2010
    Location
    Portland, Or
    Posts
    810
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    need advice setting a home page in wp

    I realize that if i create a home.php, wp will automatically go to that page as the home page. Great.
    However to have the "home" link on a navigation menu I need to create it in the wp-admin pages.
    and that page is not the same as the home.php.

    finding that navigation bit confusing.

    also if I have

    Code:
    <nav>
    <?php wp_nav_menu(array('menu' => 'MainNavMenu')); ?>
    </nav>
    to get the menu from wp-admin.
    do I use a mixed menu for other php pages?


    like

    Code:
    <nav>
    <ul>
    <li>page 01</li>
    <li>page 02</li>
    <?php wp_nav_menu(array('menu' => 'MainNavMenu')); ?>
    <li>page 03</li>
    </ul>
    </nav>
    thank you
    D

  2. #2
    SitePoint Evangelist snecz's Avatar
    Join Date
    Mar 2007
    Location
    Warsaw, Poland
    Posts
    429
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by pdxSherpa View Post
    I realize that if i create a home.php, wp will automatically go to that page as the home page. Great.
    If you use this template for your home page than yes.


    Quote Originally Posted by pdxSherpa View Post
    However to have the "home" link on a navigation menu I need to create it in the wp-admin pages.
    and that page is not the same as the home.php.
    You can set your menu in admin area as you want, add custom link, pages categories etc. and also rename them.
    Warsaw - the city that survived its own death.
    EMM8 - Profesjonalne Strony Internetowe
    Projektowanie Stron WWW

  3. #3
    SitePoint Guru
    Join Date
    Oct 2010
    Location
    Portland, Or
    Posts
    810
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    yeah...I think i maybe wp is starting to sink in...


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •