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 | |
/* | |
Template Name: Search Page | |
*/ | |
?> | |
<?php get_header();?> | |
<body> | |
<header> | |
<div id="header_layer"> | |
<h1> |
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 | |
//load css file | |
function theme_style(){ | |
wp_enqueue_style('font-aweasome','https://maxcdn.bootstrapcdn.com/font-awesome/4.6.1/css/font-awesome.min.css'); | |
wp_enqueue_style('google-font','https://fonts.googleapis.com/earlyaccess/notosansjapanese.css"'); | |
wp_enqueue_style('base',get_template_directory_uri().'/css/base.css'); | |
wp_enqueue_style('element',get_template_directory_uri().'/css/element.css'); | |
wp_enqueue_style('modifier',get_template_directory_uri().'/css/modifier.css'); | |
wp_enqueue_style('style',get_stylesheet_uri(),''); | |
}; |
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
add_theme_support( 'post-thumbnails' ); |
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/* | |
Template Name: Archive | |
*/ | |
?> | |
<?php get_header();?> | |
<body> | |
<?php | |
$categories = get_the_category(); | |
$tags = get_the_tags(); |
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 get_header();?> | |
<main <?php post_class();?> > | |
<?php if(have_posts()):?> | |
<?php while(have_posts()):the_post();?> | |
<?php | |
$categories = get_the_category(); | |
if ( !empty( $categories ) ): ?> | |
<?php foreach($categories as $category ):?> | |
<ul> | |
<li class="category_name"> |
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 if( post_password_required( $post )){ | |
$my_excerpt = get_the_excerpt(); | |
if ( $my_excerpt != '' ) { | |
$my_excerpt = 'この記事は会員のみ閲覧可能です。'; | |
} | |
echo $my_excerpt; | |
}else{ | |
the_excerpt(); | |
} | |
?> |
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
<!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();?> |
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 | |
function register_my_menus() { | |
register_nav_menus( | |
array( | |
'header-menu' => __( 'ヘッダーメニュー' ), | |
'footer-menu' => __( 'フッターメニュー' ) | |
) | |
); | |
} | |
add_action( 'init', 'register_my_menus' ); |
NewerOlder