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
// attachmentページでステータス404を返す | |
add_action( 'template_redirect', 'status404' ); | |
function status404() { | |
// attachmentページだった場合 | |
if ( is_attachment() ) { | |
global $wp_query; | |
$wp_query->set_404(); | |
status_header(404); | |
} |
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
img.waku { | |
border:1px solid #dddddd; | |
} |
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
/* | |
Theme Name: jstork Child | |
Template: jstork | |
*/ |
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_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' ); | |
function theme_enqueue_styles() { | |
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); | |
wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array('parent-style')); | |
} |
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
body { | |
font-family: '游明朝', YuMincho, 'HG明朝E', 'MS P明朝'; | |
} |
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
// カスタムクイックタグ | |
if ( !function_exists( 'add_quicktags_to_text_editor' ) ): | |
function add_quicktags_to_text_editor() { | |
//スクリプトキューにquicktagsが保存されているかチェック | |
if (wp_script_is('quicktags')){?> | |
<script> | |
QTags.addButton('qt-box-blue','青ボックス','[box class="blue_box" title="ここにタイトル"]','[/box]'); | |
QTags.addButton('qt-box-red','赤ボックス','[box class="red_box" title="ここにタイトル"]','[/box]'); | |
QTags.addButton('qt-box-yellow','黄ボックス','[box class="yellow_box" title="ここにタイトル"]','[/box]'); | |
QTags.addButton('qt-box-green','緑ボックス','[box class="green_box" title="ここにタイトル"]','[/box]'); |
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
QTags.addButton('qt-marker-blue','マーカー(青)','<span class="marker_blue">','</span>'); | |
QTags.addButton('qt-marker-red','マーカー(赤)','<span class="marker_red">','</span>'); | |
QTags.addButton('qt-marker-orange','マーカー(オレンジ)','<span class="marker_orange">','</span>'); |
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
/* 青マーカー */ | |
.marker_blue { | |
background: linear-gradient(transparent 70%, #66ccff 40%); | |
} | |
/* 赤マーカー */ | |
.marker_red { | |
background: linear-gradient(transparent 70%, #ff7f7f 40%); | |
} | |
/* オレンジマーカー */ | |
.marker_orange { |
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
<script src="/gist-embed.min.js"></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
.gist-data { | |
max-height: 400px; | |
} |
OlderNewer