WordPress.org

Ready to get started?Download WordPress

Forums

quick simple query (5 posts)

  1. bacollier
    Member
    Posted 6 years ago #

    Hi Everyone.

    I'm putting together a wordpress site with lots of pages and sub pages and i want to have a navigation in the sidebar like n.design has here - http://www.ndesign-studio.com/resources/phpbb-template/

    how do i go about dynamically implementing this...is there any plugins or is it a manual job?

    any help is much appreciated!

  2. MichaelH
    Member
    Posted 6 years ago #

    If I understand correctly, then you can use the template tag, wp_list_pages(), in your theme's sidebar.php file to list pages. Check the WordPress Default 1.6 theme and the wp-content/default/sidebar.php for an example.

  3. bacollier
    Member
    Posted 6 years ago #

    Yeh sorry i was a bit unclear....i want to implement the way the navigation shows where the user is within the sub-pages. Like i want to be able to give a "current" css style to the heading for where people are within the pages. (if that make sense)

  4. moshu
    Member
    Posted 6 years ago #

    And WP adds the "current_page_item" class to the Page where you are on. Just check your source code (and read the documentation).
    The rest is editing your stylesheet.

  5. bacollier
    Member
    Posted 6 years ago #

    moshu....thanks for the info - i didn't know about that class. Why is there documentation detailing ways like: http://codex.wordpress.org/Dynamic_Menu_Highlighting

    when adding a "current_page_item" class in your css is much much easier???

Topic Closed

This topic has been closed to new replies.

About this Topic