
便利ツール
- 
                                                      2022/05/14 / 便利ツール SNSアイコン取得URL|instagram・twitter・facebookinstagram https://www.facebook.com/brand/resources/instagram/instagram-brand/ twitter https://about.twitter.com/en/w... 続きを読む 
- 
                                                      2022/05/07 / EC-CUBE4 EC-CUBE4にwpの投稿を表示<script> $(function(){ $.ajax({ type: 'GET', // WP REST APIのURL url: 'https://aute... 続きを読む 
- 
                                                      2022/04/27 / webの知識 Xサーバー/htaccessで特定のページにBasic認証を付ける.htaccessに下記を記載 DirectoryIndex index.html index.htm index.shtml index.php index.cgi Options -Indexes AuthUserFile /h... 続きを読む 
- 
                                                      2022/04/10 / wordpress設計術 ACFでカラーピッカーを使ってカテゴリーごとに色を付け、TOPページのループ内で表示。styleでbackground-colorを変えるACFカラーピッカーの表示 ACFでカラーピッカーを使ってカテゴリーごとに色を設定し、TOPページのループ内で表示。 下記、styleでbackground-colorを変える場合 <ul> <?php if ( hav... 続きを読む 
- 
                                                      2022/02/03 / wordpress設計術 CPI UI taxonomy- タームテンプレートのタイトル表示<?php if ($terms = get_the_terms($post->ID, 'タクソノミー名')) { foreach ( $terms as $term ) { echo... 続きを読む 
- 
                                                      2022/02/03 / wordpress設計術 wordpressのパンクズ(トピックパス)2024年functions.phpとテンプレートに記載function.php function custom_breadcrumbs() { $delimiter = ' > '; $home = 'トップ'; if (!is_home() &&a... 続きを読む 
- 
                                                      2022/01/31 / html+css cssでdiv等の要素を正方形に固定(レスポンシブ)HTML <div id="fr"> <div id="content">中にテキスト</div> </div> css #fr { position: r... 続きを読む 
- 
                                                      2022/01/17 / wordpress設計術 Advanced Custom Fieldsのチェックボックス・ラジオボタンの結果にクラス名を付けるカスタムフィールド カスタムフィールドの「フィールドタイプ」をチェックボックスまたはラジオボタンにして 選択肢を kn1 : 1級 kn2 : 2級 にする チェックボックスの場合 テンプレート <?php $fi... 続きを読む 
- 
                                                      2022/01/16 / wordpress設計術 singleページのページ送り・通常とカスタム投稿(CPI UI)通常の投稿ページsingle.phpでの記載 <?php previous_post_link('%link', '« %title', TRUE); ?> <?php next_post_link('%link', '... 続きを読む 
- 
                                                      2022/01/15 / javascript jqueryとcssでタブhtml <p class="tab_btn active">タブ1</p> <p class="tab_btn">タブ2</p> <p class="tab_btn">タブ3</p> &... 続きを読む 
- 
                                                      2021/12/06 / wordpress設計術 ブラウザ幅を判定して、特定のページをリダイレクトするjavascriptレスポンシブでブラウザ幅を判定して、特定のページをリダイレクト <?php if(is_page(array('●●ページスラッグ●●','●●ページ番号●●','●●ページスラッグ●●'))): ?> <scr... 続きを読む 
- 
                                                      2021/11/26 / wordpress設計術 wp固定ページとその子(一部除外)に表示<?php if (is_page('●●スラッグ●●') || is_parent_slug() === '●●スラッグ●●' && !is_page(array('★','★'))):?> //ここに表示させた... 続きを読む 
- 
                                                      2021/11/25 / javascript 特定の要素を持つ時にclassを付けるjQuery元のHTML <div class="sample"> <div><p class="p1"></p></div> <div><p class="p2"></p></div> &... 続きを読む 
- 
                                                      2021/11/22 / wordpress設計術 wordpresのスラッグ名を取得固定ページ(page.php)・投稿ページ(single.php) <?php $page = get_post( get_the_ID() ); $slug = $page->post_name; ?> ... 続きを読む 
- 
                                                      2021/11/03 / javascript スクロールして現れたらアニメーション(フェード等)開始jquery複数の動きをコントロール Animate.cssをダウンロード Animate.css公式サイト Animate.cssダウンロード jquery //表示されたら動く $(document).ready(functio... 続きを読む 
- 
                                                      2021/10/27 / wordpress設計術 conohaサーバー:EC-CUBE4ディレクトリと並列でwpディレクトリを作成した際のhtaccessの書き方conohaサーバーでEC-CUBE4のディレクトリと並列してwpのディレクトリを作成し、EC-CUBE4のTOPページをドメインURLで表示させた際に、wpのcssが効かなかったので、下記の作業を行いました。 » EC-CUBE4を... 続きを読む 
- 
                                                      2021/10/25 / html+css head内のレスポンシブ分岐(metaタグなど)800pxまでのviewportを指定 <script type="text/javascript"> if (matchMedia('only screen and (max-width: 800px)').match... 続きを読む 
- 
                                                      2021/10/17 / wordpress設計術 投稿記事のスラッグを自動入力functions.php内に記述 post-【投稿ID】 になる function auto_post_slug( $slug, $post_ID, $post_status, $post_type ) { if ( preg_m... 続きを読む 
- 
                                                      2021/10/17 / wordpress設計術 qTranslate-XT テンプレート内で言語別に分岐させる方法テンプレート内で分岐 <?php if(qtranxf_getLanguage()=='ja'): ?> HOME-PAGE日本語 <?php elseif(qtranxf_getLanguage() ==... 続きを読む 
- 
                                                      2021/09/19 / javascript MOREボタンで数件ずつ要素を表示wpHTML <div class="bloglist"> <div>テキスト1</div> <div>テキスト2</div> <div>テキスト3</div> <div>テキスト4<... 続きを読む 
HOME > Tecnical Note
 
                                         
                                         
                                         
                                 
                                         
                                         
                                         
                             
                            

