WordPress.org

Ready to get started?Download WordPress

Forums

How do I change the order in the menu? (6 posts)

  1. oscar
    Member
    Posted 9 years ago #

    I'd like catagories to be the first item in the menu, and move links down, to at least the first spot below catagories. I've experimented a little with the code in the template, index.php, without luck. There must be two parts to move.
    Here's what I've been looking at:<br>
    <div id="menu">

      <?php get_links_list(); ?>
      <li id="categories"><?php _e('Categories:'); ?>

        <?php wp_list_cats(); ?>

      <li id="search">
      <label for="s"><?php _e('Search:'); ?></label>
      <form id="searchform" method="get" action="<?php echo $PHP_SELF; ?>">
      <div>
      <input type="text" name="s" id="s" size="15" />
      <input type="submit" name="submit" value="<?php _e('Search'); ?>" />
      </div>

  2. oscar
    Member
    Posted 9 years ago #

    I just got caught, too. The

      didn't show up when I pasted in my first post. I tried moving things as suggested, then the sizing and verticle spacing went wacky on me.
      Here's how it looks in it's original form:
      <div id="menu">

        <?php get_links_list(); ?>
        <li id="categories"><?php _e('Categories:'); ?>

          <?php wp_list_cats(); ?>

        Here's how it looks when I switched it (but spacing flew the coop):
        <div id="menu">

          <?php _e('Categories:'); ?>

            <?php wp_list_cats(); ?>

              <?php get_links_list(); ?>
              <li id="categories">

            I added an extra

              ahead of the links list...maybe I shouldn't do that?

  3. oscar
    Member
    Posted 9 years ago #

    ok. clarification. when I post the ul inside brackets, it either comes up as a blank or as a dot......so pretend you see it. thanks.

  4. oscar
    Member
    Posted 9 years ago #

    that did the trick. thanks

  5. Henk
    Member
    Posted 9 years ago #

    Anybody knows where to find a clear tutorial on changing the order of the menu? Thanks.

  6. moshu
    Member
    Posted 9 years ago #

    Did you search the Codex?
    General design topics:
    http://codex.wordpress.org/Blog_Design_and_Layout

    where you can find this
    http://codex.wordpress.org/Customizing_Your_Sidebar

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.