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
<files wp-config.php> | |
order allow,deny | |
deny from all | |
</files> |
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
@media | |
only screen and ( -webkit-min-device-pixel-ratio: 2 ), | |
only screen and ( min-resolution: 2dppx) { | |
background : url(/ja/img/sample@2x.png) left top; | |
background-repeat : no-repeat; | |
background-size : cover; | |
} |
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
# wwwあり、httpsに統一 | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{HTTP_HOST} ^sensei\.biz | |
RewriteRule (.*) http://www.sensei.biz/$1 [R=301,L] | |
RewriteCond %{HTTPS} !on | |
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] | |
</IfModule> |
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
# httpsに統一 | |
RewriteEngine On | |
RewriteCond %{HTTPS} !on | |
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] |
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
Header set Access-Control-Allow-Origin * |
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
/* RSSは、子テーマに設置した「feed-rss2.php」を優先する設定 */ | |
remove_filter('do_feed_rss2', 'do_feed_rss2', 10); | |
function custom_feed_rss2(){ | |
$template_file = '/feed-rss2.php'; | |
load_template(get_stylesheet_directory() . $template_file); | |
} | |
add_action('do_feed_rss2', 'custom_feed_rss2', 10); |
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
/* | |
① プラグイン「Easy Table of Contents」 は入れておく | |
② ページのスクロールと連動し、今読んでいるコンテンツの見出しが画面上部に固定表示される | |
*/ | |
//上部固定の見出しラベルを作るよ | |
function kjk_fixed_headline_script() { | |
?> |
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
/* Flex */ | |
.d-flex{ | |
display : flex; | |
} | |
.d-inline-flex{ | |
display : inline-flex; | |
} | |
/* Direction */ | |
.flex-row{ |
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
/* 特定のカテゴリの除外 | |
function exclude_category( $query ) { | |
if ( $query->is_home() && $query->is_main_query() ) { | |
$query->set( 'cat', '-8,-9' );//マイナスをつけてカテゴリIDを除外する | |
} | |
} | |
add_action( 'pre_get_posts', 'exclude_category' ); |
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
// Small devices (landscape phones, 576px and up) | |
@media (min-width: 576px) { ... } | |
// Medium devices (tablets, 768px and up) | |
@media (min-width: 768px) { ... } | |
// Large devices (desktops, 992px and up) | |
@media (min-width: 992px) { ... } | |
// Extra large devices (large desktops, 1200px and up) |
OlderNewer