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
/* ===============消しちゃダメ============== */ | |
/* kaereba/yomereba Customize Settings 1.0.0 ver */ | |
/* Created by Cazuki Hoshina */ | |
/* Copyright (c) @cazuki All rights Reserved. */ | |
/* ======================================== */ | |
.kaerebalink-box, .booklink-box { | |
width: 100%; | |
margin: 0 0 2rem; | |
padding: 1rem; |
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 do_post_contents_feeds($content) { | |
global $post; | |
if(has_post_thumbnail($post->ID)) { | |
$content = '<div>' .get_the_post_thumbnail($post->ID). '</div>' .$content. '<div><a href="' .get_permalink($post->ID).'" target="_blank">この記事の続きを読む</a></div><div><a href="' .get_permalink($post->ID). '" target="_blank">' .get_the_title($post->ID). '</a> は <a href="http://example.jp/" target="_blank">ブログタイトル</a> の記事です</div>'; | |
} | |
return $content; | |
} | |
add_filter('the_excerpt_rss', 'do_post_contents_feeds'); | |
add_filter('the_content_feed', 'do_post_contents_feeds'); |
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
<article | |
id="post-7323" | |
class="post-7323 post type-post status-publish format-standard has-post-thumbnail category-information category-notice tag-books tag-wordpress entry_box clrfix"> | |
<!-- コンテンツの内容 --> | |
</article> |
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
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>></article> |
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 remove_hentry( $classes ) { | |
$classes = array_diff($classes, array('hentry')); | |
return $classes; | |
} | |
add_filter('post_class', 'remove_hentry'); |
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
User-agent: * | |
Disallow: /wp-admin | |
Disallow: /wp-includes | |
Allow: /wp-content/uploads | |
Allow: /wp-includes/js | |
Disallow: /*?* | |
Disallow: /*? | |
Disallow: /*.php$ | |
Disallow: /*.js$ | |
Disallow: /*.inc$ |
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 catbase_function($link) { | |
return str_replace("/category/", "/", $link); | |
} | |
function catbase_flush_rules() { | |
global $wp_rewrite; | |
$wp_rewrite->flush_rules(); | |
} | |
function catbase_rewrite($wp_rewrite) { | |
$new_rules = array('(.+)/page/(.+)/?' => 'index.php?category_name='.$wp_rewrite->preg_index(1).'&paged='.$wp_rewrite->preg_index(2)); | |
$wp_rewrite->rules = $new_rules + $wp_rewrite->rules; |
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 balloon_shortcode($atts, $content = null) { | |
extract(shortcode_atts(array( | |
'face' => '1', | |
'name' => '自分の名前', | |
'align' => 'right' | |
),$atts)); | |
switch ($face) { | |
case 1: | |
$imageUrl = get_stylesheet_directory_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
.balloon-box { | |
overflow: hidden; | |
margin: 0 0 0.8rem; | |
} | |
.balloon-box:last-of-type { | |
margin: 0 0 1.7rem; | |
} | |
.balloon-icon { | |
width: 90px; | |
text-align: center; |
OlderNewer