Created
December 31, 2015 07:03
-
-
Save YasuakiHirano/3d84162c966c19752505 to your computer and use it in GitHub Desktop.
simple wp functions.php
This file contains 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 | |
// アイキャッチ画像設定 => アイキャッチ画像を使うかの設定と、サイズを設定している | |
add_theme_support('post-thumbnails'); | |
set_post_thumbnail_size(300, 200, true); | |
//カスタムメニューの実装 => 下記記述で、カスタムメニューが使えるようになる | |
register_nav_menus(array('main_navigation' => 'primaryNavi')); | |
// 管理画面からサイドバーの設定をできるようにする。 | |
@register_sidebar(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment