• Resolved adventure4th

    (@adventure4th)


    I using Digg 3 Column theme with WP 2.8.4. The pages i’ve added do not appear in the menu bar. The only ones showing were Home and About and the About button is not linking to the About page.

    I manually added another page to the Header.php by copy & paste. It appears in the menu bar but also does not link to the page.

    Here’s the code that’s showing:-

    <div id="menu">
    		<ul>
    			<li><a href="<?php bloginfo('url'); ?>/" title="<?php bloginfo('name'); ?>"><?php _e('Home'); ?></a></li>
    			<li><a href="<?php echo get_permalink(2); ?>" title="<?php _e('About'); ?>"><?php _e('About'); ?></a></li>
                            <li><a href="<?php echo get_permalink(2); ?>" title="<?php _e('Calendar of Events 2009'); ?>"><?php _e('Calendar of Events 2009'); ?></a></li>
    		</ul>
    	</div>

    What’s missing?
    Any suggestions, please?

Viewing 1 replies (of 1 total)
  • Thread Starter adventure4th

    (@adventure4th)

    I’ve fixed this – for the Digg 3 Theme at least. Tested it in Firefox and IE and looks fine in both and the links work.

    In the Header.php I deleted the lines for the pages I had added and inserted the wp_list_pages tag instead. Here’s the code I used:

    <?php wp_list_pages('title_li= &exclude=942' ); ?>

    I’ve modified it to exclude a page that is a level below another page as including it affected the header alignment. The space after the first = sign excludes the title ‘Page’ which I don’t need to appear as it’s a menu bar not a list.

    You can get more help from these links that explain what to do:

    http://codex.wordpress.org/Template_Tags/wp_list_pages
    http://codex.wordpress.org/Creating_Horizontal_Menus

Viewing 1 replies (of 1 total)
  • The topic ‘Pages appearing or linking in menu bar Digg 3 Column’ is closed to new replies.