Skip to content

Instantly share code, notes, and snippets.

@pochi-web pochi-web/header.php
Created Sep 21, 2017

Embed
What would you like to do?
カスタムメニューを読み込む
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>some-titles</title>
<link rel="stylesheet" href="<?php echo get_template_directory_uri();?>/style.css">
<?php wp_head();?>
</head>
<body>
<header>
<?php
wp_nav_menu( array( 'theme_location' => 'header-menu' ) );
?>
</header>
@pochi-web

This comment has been minimized.

Copy link
Owner Author

commented Sep 21, 2017

theme_locationの値をregister_nav_menusで設定されている名称と同じにすることで表示される

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.