WordPress.org

Ready to get started?Download WordPress

Forums

creating a simple theme with menu that i can add pages to (2 posts)

  1. theregoesjb
    Member
    Posted 1 year ago #

    I am trying to create a site for my work and would like to make a relatively simple theme that consists of a custom menu layout. I can create the menu with HTML/CSS but i need to make it wordpress compatible so i can add pages and sub pages through the WP back end.

    How should i approach this? Or does anyone know a good resource for this particular question?

    thanks

  2. Chip Bennett
    Theme Review Admin
    Posted 1 year ago #

    WordPress provides all of the CSS classes that you need for styling your navigation menu however you like.

    The three primary functions for outputting navigation/page lists, wp_nav_menu(), wp_page_menu(), and wp_list_pages(), all output their content as HTML lists. The horizontal, dropdown menu output by Twenty Eleven is all CSS-driven.

    Here are the CSS classes for:

    * Lists generated by wp_nav_menu()
    * Lists generated by wp_page_menu()
    * Lists generated by wp_list_pages()

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.