Skip to content

Instantly share code, notes, and snippets.

@lifoolgh
lifoolgh / image-under-char.html
Created September 3, 2018 18:35
画像横並びの下に文字
<p>実際の画面がこちら。</p>
<div style="float: left; margin: 20px;"><img class="waku aligncenter wp-image-8509" src="https://lifool.com/wp-content/uploads/2018/07/f32657b59aeb8fb58072f25d6309740c.png" alt="コイン相場_価格チェック" width="320" height="567" /></div>
<div style="float: left; margin: 20px;"><img class="waku aligncenter wp-image-8508" src="https://lifool.com/wp-content/uploads/2018/07/e7e90fe332205dc21e9672d047df9eae.png" alt="コイン相場_カスタマイズ" width="320" height="568" /></div>
<div style="clear: both;"> </div>
<p>こんな感じで、<strong>取引所ごとの現在の価格をひと目でチェック</strong>することができます。</p>
<div style="float:left; margin: 20px">
<img src="image1" />
</div>
<div style="float:left; margin: 20px">
<img src="image2" />
</div>
<div style="clear: both;"></div>
@lifoolgh
lifoolgh / siteguard.mod
Created November 14, 2017 12:07
SiteGuard WP Pluginのhtaccessの設定
#SITEGUARD_PLUGIN_SETTINGS_START
#==== SITEGUARD_RENAME_LOGIN_SETTINGS_START
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteRule ^login_12345(.*)$ wp-login.php$1 [L]
</IfModule>
#==== SITEGUARD_RENAME_LOGIN_SETTINGS_END
#SITEGUARD_PLUGIN_SETTINGS_END
@lifoolgh
lifoolgh / functions-s8-child.php
Created November 7, 2017 11:08
stinger8用の子テーマ
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
function theme_enqueue_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
}
@lifoolgh
lifoolgh / gist-height.css
Last active November 7, 2017 06:45
gistを埋め込んだときの高さ指定
.gist-data {
max-height: 400px;
}
@lifoolgh
lifoolgh / header-gist-embed.php
Created November 7, 2017 05:14
gist-embed.min.jsを読み込む
<script src="/gist-embed.min.js"></script>
@lifoolgh
lifoolgh / marker.css
Created November 1, 2017 04:30
マーカーのCSS
/* 青マーカー */
.marker_blue {
background: linear-gradient(transparent 70%, #66ccff 40%);
}
/* 赤マーカー */
.marker_red {
background: linear-gradient(transparent 70%, #ff7f7f 40%);
}
/* オレンジマーカー */
.marker_orange {
@lifoolgh
lifoolgh / qt-marker.php
Last active November 1, 2017 04:28
マーカーのクイックタグ追加
            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>');
@lifoolgh
lifoolgh / stork-quicktag.php
Last active November 1, 2017 05:06
STORKのショートコード用クイックタグ
// カスタムクイックタグ
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]');
@lifoolgh
lifoolgh / style-test-font.css
Created October 30, 2017 03:33
子テーマのテスト用CSS
body {
font-family: '游明朝', YuMincho, 'HG明朝E', 'MS P明朝';
}