Results 1 to 3 of 3

Thread: WordPress Newbie - Simple questions?

  1. #1
    Thread Starter
    Junior Member berryc's Avatar
    Join Date
    Jul 2009
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts

    WordPress Newbie - Simple questions?

    Hello,
    Since this installation is a 'sub-site' for a customers website, I need to add a WEBSITE HOME link at the top next to Home. Is this possible?
    Thanks!
    Craig

  2. #2
    Veteran taylerj's Avatar
    Join Date
    Apr 2009
    Location
    Las Vegas, NV
    Posts
    380
    Thanks
    1
    Thanked 8 Times in 6 Posts

    Re: WordPress Newbie - Simple questions?

    Open your theme folder and get your header.php file out.
    go to around line 63 and look for this

    Code:
     <ul id="nav">
                        <?php if (is_page()) { $highlight = "page_item"; } else {$highlight = "page_item current_page_item"; } ?>
                        <li class="<?php echo $highlight; ?>">Home
                        <?php 
    						wp_list_pages('sort_column=menu_order&depth=0&title_li=&exclude='.get_option('excluded_pages')); 
    					?>[/list]
    This is your main navigation code.

    Take a main link code such as this

    Code:
    <li class="<?php echo $highlight; ?>">LINK TEXT
    And insert it someplace around the header.php code so you will end up with this

    Code:
    <ul id="nav">
                        <?php if (is_page()) { $highlight = "page_item"; } else {$highlight = "page_item current_page_item"; } ?>
                        <li class="<?php echo $highlight; ?>">LINK TEXT
                        <li class="<?php echo $highlight; ?>">Home
                        <?php 
    						wp_list_pages('sort_column=menu_order&depth=0&title_li=&exclude='.get_option('excluded_pages')); 
    					?>[/list]
    Simply replace the text inside the link with the following

    SITE LINK = Replace with the URL of where you want the link to go to.
    LINK TEXT = What you want the link to say.
    Eric is best known in the forum for his in depth tutorials. He started in design 4 years ago and then discovered WordPress and has been coding and hacking themes and plugins ever since. He's quite helpful if you have any questions for him in the forum. Eric also makes his own WordPress themes and plugins and provides ClassiPress consulting on the side. David Cowgill - (Owner of Classipress)

  3. #3
    Thread Starter
    Junior Member berryc's Avatar
    Join Date
    Jul 2009
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: WordPress Newbie - Simple questions?

    Hey...thanks for helping a newbie!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)