Skip to content

Instantly share code, notes, and snippets.

View norilog4's full-sized avatar
😎
ブログ書いてます

noriposo norilog4

😎
ブログ書いてます
View GitHub Profile
@norilog4
norilog4 / content-not-found.php
Last active March 5, 2020 04:18
SANGOの404ページをカスタマイズ
<article class="notfound">
<div class="nofound-title">
<?php fa_tag("tint","tint",false); ?>
<?php
if( is_search() || is_archive() ) {
echo '記事が見つかりませんでした。';
} else {
echo 'お探しのページが見つかりませんでした😫';
} ?>
</div>
@norilog4
norilog4 / functions.php
Created December 1, 2019 09:36
コメント欄「メールアドレス」と「サイト」を消すソースコード
function my_comment_form_remove($arg) {
$arg['email'] = '';
$arg['url'] = '';
return $arg;
}
add_filter('comment_form_default_fields', 'my_comment_form_remove');
@norilog4
norilog4 / functions.php
Created December 1, 2019 09:53
コメントフォーム「メールアドレスが公開されることはありません」文言を削除
//コメント文言を変更
function custom_comment_form($args) {
$args['comment_notes_before'] = '';
$args['comment_notes_after'] = '';
$args['label_submit'] = '送信';
return $args;
}
add_filter('comment_form_defaults', 'custom_comment_form');
@norilog4
norilog4 / style.css
Last active March 5, 2020 13:46
国産目次プラグイン「Rich Table of Contents」目次のタイトルフォントを太くする方法
@media (min-width: 1024px)
.rtoc-mokuji-content #rtoc-mokuji-title {
font-size: 1.45em; /* ここでフォントサイズを修正 */
}
.rtoc-mokuji-content #rtoc-mokuji-title {
letter-spacing: 0;
font-size: 1.45em; /* ここでフォントサイズを修正 */
line-height: 1.8;
font-weight: 600; /* ここでフォントの太さを修正 */
}
@norilog4
norilog4 / sidebar.html
Last active March 5, 2020 14:24
サイドバーへの追加方法と追加するコード
[rtoc_mokuji title="<i class="fas fa-list-ul"></i> この記事のもくじ" title_display="center" heading="h3" list_h2_type="number2" list_h3_type="round" display="open" color="preset1" frame_design="frame4" animation="slide"]
@norilog4
norilog4 / recaptcha.html
Last active March 6, 2020 17:19
Google reCAPTCHAのロゴを非表示にする方法(コードをサイトに表示させる)
このサイトはreCAPTCHAによって保護されており、Googleの<a href = "https://policies.google.com/privacy">プライバシーポリシー</a><a href = "https://policies.google.com/terms">利用規約</a>が適用されます。
@norilog4
norilog4 / recaptchav3-badge-hide.css
Created March 6, 2020 16:15
reCAPTCHA v3のバッジを非表示にする追記CSS
.grecaptcha-badge { visibility: hidden; }
@norilog4
norilog4 / shiny-button.html
Created March 9, 2020 08:02
光るボタンのソースコード
赤色のボタン
[redshiny]<a href="" target="_blank" rel="noopener noreferrer"><i class="fas fa-download"></i> ヘッダー画像テンプレートダウンロード</a>[/redshiny]
黄色のボタン
[yellowshiny]<a href="" target="_blank" rel="noopener noreferrer"><i class="fas fa-cart-arrow-down"></i> 商品をカートへ追加</a>[/yellowshiny]
青色のボタン
[blueshiny]<a href="" target="_blank" rel="noopener noreferrer"><i class="fab fa-facebook-messenger"></i> メッセンジャーでメッセージを送る</a>[/blueshiny]
緑色のボタン
[greenshiny]<a href="" target="_blank" rel="noopener noreferrer"><i class="fas fa-tree"></i> 植樹を行う(緑の募金サイト)</a>[/greenshiny]
@norilog4
norilog4 / shiny-button.css
Created March 9, 2020 08:27
光るボタン4色のデザインCSSコード(赤色・黄色・青色・緑色)
/************************************
** 光る赤いボタン
************************************/
.red-shiny a {
display: block;
position: relative;
z-index: 2;
overflow: hidden;
width: 100%;
font-weight: bold ;
@norilog4
norilog4 / functions.php
Created March 9, 2020 08:57
赤色ボタンのショートコードを追加
/*赤い光るボタンをショートコード化*/
function ShinyBtn( $atts, $content = null ) {
return '<div class="red-shiny">' . $content . '</div>';
}
add_shortcode('redshiny', 'ShinyBtn');