Support » Fixing WordPress » Adding tabs

  • 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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding tabs’ is closed to new replies.