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
RewriteEngine on | |
RewriteCond %{SERVER_PORT} !^443$ [OR] | |
RewriteCond %{HTTPS} off | |
RewriteRule ^(.*)$ https://www.domain.com/$1 [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
.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; |
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
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
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 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
<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
<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> |