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
<!-- begin facebookページ いいね for moblie --> | |
<?php if (is_mobile()) :?> | |
<div class="p-shareButton p-asideList p-shareButton-bottom"> | |
<div class="p-shareButton__cont"> | |
<div class="p-shareButton__a-cont"> | |
<div class="p-shareButton__a-cont__img" style="background-image: url('<?php echo wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); ?>')"> | |
</div> | |
<div class="p-shareButton__a-cont__btn"> | |
<p>この記事が気に入ったらいいね!しよう</p> | |
<div class="p-shareButton__fb-cont p-shareButton__fb"> |
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 (max-device-width: 640px), | |
only screen and (max-device-width: 667px), | |
only screen and (max-width: 480px) and (orientation : portrait){ | |
/* for iPhone 6 and 6+ */ | |
/*記事がよかったら、いいねスマホ*/ | |
.p-shareButton-bottom { | |
padding-bottom: 15px; | |
overflow: hidden | |
} |
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 is_mobile(){ | |
$useragents = array( | |
'iPhone', // iPhone | |
'iPod', // iPod touch | |
'Android.*Mobile', // 1.5+ Android *** Only mobile | |
'Windows.*Phone', // *** Windows Phone | |
'dream', // Pre 1.5 Android | |
'CUPCAKE', // 1.5+ Android | |
'blackberry9500', // Storm |
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_image_size( 'single_size', 782, 9999, true ); 変更前 | |
add_image_size( 'single_size', 782, 500, true ); |
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: liquid-magazine-child | |
Author: Ohigashi | |
Template: liquid-magazine | |
*/ | |
/* main width 740px */ | |
body{ | |
/* font-family: "Hiragino Kaku Gothic ProN", "游ゴシック", YuGothic, Meiryo, sans-serif;*/ |
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
// SSLを伝える | |
if( isset($_SERVER['HTTP_X_SAKURA_FORWARDED_FOR']) ) { | |
$_SERVER['HTTPS'] = 'on'; | |
$_ENV['HTTPS'] = 'on'; | |
} |
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
[speech_bubble type="std" subtype="R1" icon="../../../uploads/2016/05/mono96.jpg" name="ものくろ"] | |
こんにちは | |
[/speech_bubble] |
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 %{REQUEST_URI} !^/wp-cron.php$ | |
RewriteCond %{HTTP:X-Sakura-Forwarded-For} ^$ |
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
/* | |
Description: snsボタンCSS | |
Version: 1.0 | |
Author: mono96 | |
Author URI: http://mono96.jp | |
License: GPL V2 | |
*/ | |
.entry-date { | |
color: #808080; |
OlderNewer