fonksiyon:
register_nav_menus(
array('footer' => __( 'footer-menu', 'THEME_NAME' ),)
);
footer:
'footer',
'menu_class' => 'one',
) ); ?>
register_nav_menus(
array('footer' => __( 'footer-menu', 'THEME_NAME' ),)
);
'footer',
'menu_class' => 'one',
) ); ?>
function textdomain_menus() {
register_nav_menus( array(
'menu_name' => esc_html__( 'Menü adı', 'textdomain' ),
));
}
add_action( 'after_setup_theme', 'textdomain_menus' );
wp_nav_menu(array(
'theme_location' => "menu_name",
'container' => "",
'container_class' => "",
'container_id' => "",
'menu' => "",
'menu_class' => "",
'menu_id' => "",
));
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'textdomain_menus' not found or invalid function name in C:\Program Files (x86)\EasyPHP-Devserver-17\eds-www\wordpress\wp-includes\class-wp-hook.php on line 286
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'textdomain_menus' not found or invalid function name in C:\Program Files (x86)\EasyPHP-Devserver-17\eds-www\wordpress\wp-includes\class-wp-hook.php on line 286
function textdomain_menus() {
register_nav_menus( array(
'menu_name' => esc_html__( 'Menü adı', 'textdomain' ),
));
}
add_action( 'after_setup_theme', 'textdomain_menus' );
wp_nav_menu(array(
'theme_location' => "menu_name",
'container' => "",
'container_class' => "",
'container_id' => "",
'menu' => "",
'menu_class' => "",
'menu_id' => "",
));
wp_nav_menu( array(
'theme_location' => 'menu-1',
'container' => "nav",
'container_class' => "topnav",
'container_id' => "topnav",
'menu_class' => "topmenu",
'menu_id' => "topmenu",
)
);