Skip to:
Content
Pages
Categories
Search
Top
Bottom

Adding navigation buttons to the header

  • Avatar of russelrocketpopmediacom
    concrain
    Participant

    @russelrocketpopmediacom

    Im still a beginner in php. I could use a point in the right direction.

    thanks

    Russel

Viewing 6 replies - 1 through 6 (of 6 total)
  • the navigation links are located in header.php

    Avatar of russelrocketpopmediacom
    concrain
    Participant

    @russelrocketpopmediacom

    I was hoping to find some sample code to get me started.

    Avatar of wordpressfan
    wordpressfan
    Participant

    @wordpressfan

    The header is created out of simple

  • statements; check out the header.php for details. You can also read the codes.wordpress.org for examples on how to automatically add categories/pages to your menu.

The code to add depends on what links you want to add :-) Want to link to Apple?

<li><a href="http://www.apple.com">Apple</a></li>

want to list all your pages?

<?php wp_list_pages(); ?>

want to hard code a link to a contact page (assuming the link is /contact/)

<li><a href="/contact/">Contact</a></li>

etc.

Look in the header.php file and you will see all the links that are currently there.

Avatar of russelrocketpopmediacom
concrain
Participant

@russelrocketpopmediacom

thanks guys

Avatar of ziggity
ziggity
Participant

@ziggity

this is cool but what if i have a page with some php and HTML code i wrote on it? how do i link to that and have it be in the buddypress template? i found another thread about it http://buddypress.org/forums/topic/make-your-own-custom-buddypress-page but it’s not working and nobody’s come up with a solution for it yet.

Viewing 6 replies - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.