WordPress.org

Ready to get started?Download WordPress

Forums

Pages as tabs with the active tab colored differently? (4 posts)

  1. jl2424
    Member
    Posted 5 years ago #

    How can we realize our pages (About us, Contact, Imprint, etc.) as tabs (like the tabs in Firefox) with the active tab in different color? Furthermore our "subscribe" tab should have a little RSS icon.

  2. MichaelH
    Member
    Posted 5 years ago #

    A number of themes do that so take a look at how this theme uses tabs for both Pages and Categories:
    http://wordpress.org/extend/themes/amazing-grace

    Also review:
    http://codex.wordpress.org/Template_Tags/wp_list_pages#Markup_and_styling_of_page_items

  3. jl2424
    Member
    Posted 5 years ago #

    Thanks, but I think we cannot use it that way. Our page navigation consists of images with a non-standard font used. So I guess we have to hard-code the pages like that:

    <a href="page01">
         <img src="page01button.gif" />
    </a>
    <a href="page02">
         <img src="page02button.gif" />
    </a>

    etc.

    But how can we get the correct link to a page? Is there something like <?php get_page_link($pageId); ?>

  4. MichaelH
    Member
    Posted 5 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic