Skip to:
Content
Pages
Categories
Search
Top
Bottom

Adding navigation buttons to the header


  • 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


    concrain
    Participant

    @russelrocketpopmediacom

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


    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.


concrain
Participant

@russelrocketpopmediacom

thanks guys


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 https://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)
  • The topic ‘Adding navigation buttons to the header’ is closed to new replies.
Skip to toolbar