Adding tabs (3 posts)

  1. h3lpm3
    Posted 8 years ago #

    Hi I'm trying to add/edit tabs in the top part of the site (where there is the 'About' tab), I would like to know how to add more tabs to a forum and other features.

    Thanks in advance.

  2. Shaun Roundy
    Posted 8 years ago #

    I'm hoping someone will answer your question.

    I've found wp_list_pages('title'), which lists all wp pages vertically, and I expect there's a way to turn that into a <ul> tag with each <li> becoming another tab, or that there's already a function that does exactly what I want already.

    Backing up - in case this helps - there's probably a function like wp_turn_pages_into_nav_tabs() that you just plug into your code. Then you add another tab simply by creating another page (as opposed to another post). And if you can find a theme that looks that way, you can probably locate the function either in header.php or possibly page.php and copy it into the header.php of the theme you're modifying.

  3. Chris_K
    Posted 8 years ago #

    No function necessary to turn a list into tabs. That's just CSS in action.

    Take a look at the source of a WP theme that displays Pages as tabs. You'll see it is almost always a styled unordered list.

Topic Closed

This topic has been closed to new replies.

About this Topic