![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
#1
|
||||
|
||||
|
This is my site:
http://sandgroper.net/demo This is the error: Code:
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'register_my_menus' was given in /home/ozscrib1/public_html/sandgroper.net/demo/wp-includes/plugin.php on line 395 Code:
// Add Custom Menus
add_action( 'init', 'register_my_menus' );
function register_my_menus() {
register_nav_menus(
array(
'header-top' => __( 'Header Top' ),
'header-bottom' => __( 'Header Bottom' ),
'sidebar1' => __( 'Sidebar First' )
)
);
}
Code:
<div class="headerright">
<ul id="topnav">
<?php if (is_home()) { ?>
<li class="current_page_item"><a href="<?php echo get_option('home'); ?>"><?php _e("Home", 'studiopress'); ?></a></li>
<?php } else { ?>
<li><a href="<?php echo get_option('home'); ?>"><?php _e("Home", 'studiopress'); ?></a></li>
<?php } ?>
<?php wp_nav_menu( array( 'theme_location' => 'header-top' )); ?>
</ul>
</div>
Code:
<div id="navbar">
<ul id="nav">
<?php wp_nav_menu( array( 'theme_location' => 'header-bottom' )); ?>
</ul>
</div>
![]() Any help greatly appreciated Cheers Pete
__________________
I love my son more than anything else in the world. |
| Tags |
| custom menu, error, functions.php, header, magazine, menu |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Trouble Creating a Page | Calum | General Discussion | 5 | 04-26-2010 11:04 AM |
| Creating dropdown menus.. how? | ardy | General Discussion | 9 | 03-08-2010 11:39 AM |
| Using Corporate Theme as a company website - having trouble with drop down menus! | JohnLaw | General Discussion | 2 | 02-14-2010 05:09 PM |
| Creating static pages which don't appear on menus | Andrew_Cooper | General Discussion | 4 | 12-15-2008 12:15 AM |
© Copyright 2012 Copyblogger Media LLC · StudioPress™ is a trademark of Copyblogger Media LLC
Privacy Policy | Refund Policy | Terms of Service | Affiliate Program | Contact Us