Skip to content

Instantly share code, notes, and snippets.

<!-- 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">
@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
}
//スマホ表示分岐
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
#content {
background-color: rgb(249, 250, 251);
}
#gnav,
#gnav li a {
background: #eaf4fc;
}
#gnav li .sub-menu li a {
// add_image_size( 'single_size', 782, 9999, true ); 変更前
add_image_size( 'single_size', 782, 500, true );
/*
Theme Name: liquid-magazine-child
Author: Ohigashi
Template: liquid-magazine
*/
/* main width 740px */
body{
/* font-family: "Hiragino Kaku Gothic ProN", "游ゴシック", YuGothic, Meiryo, sans-serif;*/
// SSLを伝える
if( isset($_SERVER['HTTP_X_SAKURA_FORWARDED_FOR']) ) {
$_SERVER['HTTPS'] = 'on';
$_ENV['HTTPS'] = 'on';
}
[speech_bubble type="std" subtype="R1" icon="../../../uploads/2016/05/mono96.jpg" name="ものくろ"]
こんにちは
[/speech_bubble]
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/wp-cron.php$
RewriteCond %{HTTP:X-Sakura-Forwarded-For} ^$
/*
Description: snsボタンCSS
Version: 1.0
Author: mono96
Author URI: http://mono96.jp
License: GPL V2
*/
.entry-date {
color: #808080;