This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function custom_login_logo() { | |
echo '<style type="text/css"> | |
h1 a {background-image: url('.get_bloginfo('template_directory').'/images/logo-login.png) !important; } | |
</style>'; | |
} | |
add_action('login_head', 'custom_login_logo'); | |
//hook into the administrative header output | |
add_action('wp_before_admin_bar_render', 'custom_login_logo'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function register_my_menu() { | |
register_nav_menu('new-menu',__( 'New Menu' )); | |
} | |
add_action( 'init', 'register_my_menu' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function register_my_menus() { | |
register_nav_menus( | |
array( | |
'menu-baru' => __( 'New Menu' ), | |
'second-menu' => __( 'Second Menu' ) | |
) | |
); | |
} | |
add_action( 'init', 'register_my_menus' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php wp_nav_menu( array( 'theme_location' => 'new-menu' ) ); ?> |