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
<div style="border: 1px dashed #cccccc; padding: 10px;"> | |
★サポートよろしくお願いします★ | |
いつもありがとうございます。 | |
<span style="font-size: 14px;">この記事を気に入って下さった方、「投げ銭してあげてもいいよ」という方がいらっしゃったらサポートしていただけると嬉しいです。</span> | |
<a href="https://www.amazon.co.jp/gp/product/B004N3APGO/ref=as_li_tl?ie=UTF8&camp=247&creative=1211&creativeASIN=B004N3APGO&linkCode=as2&tag=mitohachi-22&linkId=6fb349a501488bf98c7ce1101aea8265">Amazonギフト券- Eメールタイプ - Amazonベーシック</a> | |
金額は空白欄に投げ銭できる金額を書きこんで下さい。(15円から設定できます) | |
あらかじめ入っている金額はAmazonの設定なので気になさらないでください。 |
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
//新着ニュースとかに | |
<div style="margin:0px;padding:0px;" align="left"><div style="margin:0px;padding:0px;line-height:1.3;width:600px;background-color:#FFFFFF;"><div style="margin:0px;padding:10px;line-height:1.3;overflow:auto;border: 2px solid #faebd7;color:#000000;text-align:left;height:10em;">「↓↓↓ニュースです↓↓↓」<br><br /> | |
2010年3月 : サイトを開設致しました。<br> | |
<br> | |
2010年3月 : サイトを開設致しました。<br> | |
<br> | |
2010年3月 : サイトを開設致しました。<br> | |
<br> | |
</tr> | |
</tbody> |
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
必要に応じてのHTML・CSS(サロン用) | |
//レイアウト2カラム | |
<div class="post_row"><div class="post_col post_col-2">ここに左カラムに表示させたい任意のテキストや画像タグを入力します。</div><div class="post_col post_col-2">ここに右カラムに表示させたい任意のテキストや画像タグを入力します。</div></div> | |
//レイアウト3カラム | |
<div class="post_row"><div class="post_col post_col-3">ここに左カラムに表示させたい任意のテキストや画像タグを入力します。</div><div class="post_col post_col-3">ここに中央カラムに表示させたい任意のテキストや画像タグを入力します。</div><div class="post_col post_col-3">ここに右カラムに表示させたい任意のテキストや画像タグを入力してください。</div></div> |
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 wps_highlight_results($text) { | |
if(is_search()){ | |
$sr = get_query_var('s'); | |
$keys = explode(" ",$sr); | |
$text = preg_replace('/('.implode('|', $keys) .')/iu', '<span class="searchhighlight">'.$sr.'</span>', $text); | |
} | |
return $text; | |
} | |
add_filter('the_title', 'wps_highlight_results'); |
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
//一般的にはindex.phpか、header.phpあたり | |
<?php | |
if ( is_archive() || is_search() ) { //アーカイブか検索ページだったら | |
global $wp_query; | |
$total_results = $wp_query->found_posts; //件数を取得しておく | |
} | |
?> | |
<?php if ( is_archive() ): //アーカイブページ ?> |
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
<a href="〇〇〇/〇〇〇" download="〇〇〇.zip">ダウンロード</a> |
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_filter('wp_mail_from', 'new_mail_from'); | |
add_filter('wp_mail_from_name', 'new_mail_from_name'); | |
function new_mail_from($old) { | |
return 'info@hoge.jp'; // 変更したいメールアドレスを入力 | |
} | |
function new_mail_from_name($old) { | |
return 'ほげほげ管理者';//サイト名を入力 | |
} |
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
/*wp-login.phpに格納*/ | |
<Files wp-login.php> | |
AuthUserFile ※ここに「.htpasswd」へのフルパスを記入 例 /var/www/.htpasswd | |
AuthName "Please enter your ID and password" | |
AuthType Basic | |
require valid-user | |
</Files> | |
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
# ETags(Configure entity tags) を無視する設定 | |
<ifModule mod_headers.c> | |
Header unset ETag | |
</ifModule> | |
FileETag None | |
# Enable Keep-Alive を設定 | |
<IfModule mod_headers.c> | |
Header set Connection keep-alive | |
</IfModule> |
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 custom_login_logo() { ?> | |
<style> | |
.login #login h1 a { | |
width: 128px; | |
height:128px; | |
background: url(<?php echo get_stylesheet_directory_uri(); ?>/images/logo01.png) no-repeat 0 0; | |
} | |
</style> | |
<?php } | |
add_action( 'login_enqueue_scripts', 'custom_login_logo' ); |