add this to your functions.php
//Register area for custom menu
function register_my_menus() {
register_nav_menus(
array(
'primary-menu' => __( 'Primary Menu' ),
'secondary-menu' => __( 'Secondary Menu' ),
'tertiary-menu' => __( 'Tertiary Menu' )
)
);
}
than call it in your header where you want your menu to appear with
<?php wp_nav_menu( array( 'sort_column' => 'menu_order', 'menu_class' => 'nav', 'theme_location' => 'primary-menu' ) ); ?>
and style .nav how ever you want.
it did not work….
I exchanged
<?php art_menu_items(); ?>
to
<?php wp_nav_menu( array( ‘sort_column’ => ‘menu_order’, ‘menu_class’ => ‘nav’, ‘theme_location’ => ‘primary-menu’ ) ); ?>
in header
And in functions, I just pressed enter and added the code u gave me.
//Register area for custom menu
function register_my_menus() {
register_nav_menus(
array(
‘primary-menu’ => __( ‘Primary Menu’ ),
‘secondary-menu’ => __( ‘Secondary Menu’ ),
‘tertiary-menu’ => __( ‘Tertiary Menu’ )
)
);
}
taking away <?php art_menu_items(); ?> took away the themes menu, but in
/wp-admin/nav-menus.php
it still shows the text:
The current theme does not natively support menus, but you can use the “Custom Menu” widget to add any menus you create here to the theme’s sidebar.
And the menu would not appear that i saved in there.
hmmm :/ thanks for the effort tho, I might just be slow…
Found a another somewhat solution….
changing
<?php art_menu_items(); ?>
to
<li><a href="http://searchbyssn.org/">Home</a></li>
<li><a href="http://searchbyssn.org/about/">About</a></li>
<li><a href="http://searchbyssn.org/terms-of-service/">Terms Of Service</a></li>
<li><a href="http://searchbyssn.org/privacy">Privacy</a></li>
<li><a href="http://searchbyssn.org/contact/">Contact</a></li>
worked’s, but the links are not styled as they are supposed to be, as when they are in “<?php art_menu_items(); ?>”
can that be fixed?
(might be easier… to find an solution for that….)
link to your site?
If you added the code to functions.php it should add menus tab under appearance, and then you should be able to add pages you want to it.
But maybe it’s a theme issue….
splitzgames.com
if you can assist over http://www.teamviewer.com my msn is [email protected] to exchange TW info.
don’t have msn, my skype name is the same as here
this was the solution:
http://ww.wp.xz.cn/extend/plugins/exclude-pages
it creates a tick box on left right side under the page attributes that you can check or uncheck to exlude the pages from the standard wordpress page listings.