• Hello,

    Im working on trying to customize a template but I cannot get the menu bar to show all of the ‘pages’. Page is at coryclawson.com. Anyone know what has to be edited to get all of the pages to show on the menu bar?

    Secondly, is there a way to get the menu bar to double stack the page name text? For instance, instead of having “Monumental Sculpture” listed horizontally, have one word over the other to save width on the menu bar….

    N

Viewing 4 replies - 1 through 4 (of 4 total)
  • Which pages are shown on the menu depends upon how the template is selecting the pages. There’s a good chance your theme is using wp_list_pages() – I guess you’re not the theme creator? Also, it might be that you’re using a plug-in that filters pages from being displayed.

    You could use something like preg_replace() wherever your theme generates the menu, replacing any spaces within menu names with a HTML
    element.

    Thread Starter Thenook

    (@thenook)

    Hello,

    Correct I am not the theme creator, it credits the creator at the bottom. The theme came with a search field where the blank spot is on the menu bar, I wanted to put a few more page titles there. I have not added any plugins beyond gallery and stats.

    Check out the codex documentation for wp_list_pages() to see why your theme isn’t listing all the pages.

    I neglected to escape the HTML element in my second paragraph. I meant to say; “… replacing any spaces within menu names with a <br /> HTML element.”

    Thread Starter Thenook

    (@thenook)

    Thanks sipsniffa,

    I tried a
    in the page name to replace a space but it only stacked the text in the left column, not in the actual menu bar. I have included the body section of the header.php which seems to have the menu line you mentioned, I am just not familiar with what might need to be changed in order to have it show all the pages. I tried substituting the wp_list_pages as shown in your example but it made the page not display at all so Im sure I am not using it correctly. Below is the header body section as it sits now.

    <body>
    <div id=”page_top”>
    <div id=”base”>
    <div id=”header”>
    <div id=”blogtitle”>“><?php bloginfo(‘name’); ?></div>
    <div id=”subtitle”><?php bloginfo(‘description’);?></div>
    </div>
    <div id=”menu”>

      <?php
      $options = get_option(‘widget_pages’);
      $exclude = empty($options[‘exclude’] ) ? ” : $options[‘exclude’];
      echo menu_separator(wp_list_pages(‘echo=0&sort_column=menu_order&depth=1&title_li=&exclude=’.$exclude));
      ?>

    <div id=”container”>

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Little help with menu bar?’ is closed to new replies.