This file contains hidden or 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
| <header | |
| class="hogehoge" | |
| <?php if ( has_post_thumbnail() ) : ?> | |
| style="background-image: url(<?php echo wp_get_attachment_url( get_post_thumbnail_id() ); ?>)" | |
| <?php endif; ?> | |
| > |
This file contains hidden or 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 plugin install debug-bar query-monitor log-deprecated-notices monster-widget developer theme-check --activate |
This file contains hidden or 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
| $('.p-faq__dt').on( 'click', function() { | |
| $(this).next().slideToggle(); | |
| $(this).toggleClass( 'is-open' ); | |
| }); |
This file contains hidden or 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 id="modal-id" class="modal modal-open"> | |
| <button class="modal-close">X</button> | |
| </div> |
This file contains hidden or 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
| .table-wrap { | |
| display: block; | |
| overflow-x: scroll; | |
| white-space: nowrap; | |
| overflow-scrolling: touch; | |
| } |
This file contains hidden or 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
| var pagetop = $('#page_top'); //ボタンを指定 | |
| pagetop.hide(); | |
| $(window).scroll(function () { | |
| if ($(this).scrollTop() > 100) { | |
| pagetop.fadeIn(); | |
| } else { | |
| pagetop.fadeOut(); | |
| } | |
| }); |
This file contains hidden or 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
| /* 見出し全体 | |
| ------------------------------*/ | |
| h2, | |
| h3, | |
| h4, | |
| h5, | |
| h6 { | |
| } |
This file contains hidden or 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
| <?php | |
| /** | |
| * オリジナルCSS読み込み | |
| */ | |
| function od_enqueue_scripts() | |
| { | |
| wp_enqueue_style('od_styles', plugins_url('style.css', __FILE__)); | |
| } | |
| add_action('wp_enqueue_scripts', 'od_enqueue_scripts'); |
This file contains hidden or 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
| <?php | |
| /** | |
| * Editor style | |
| */ | |
| function oleindesign_editor_style_register() | |
| { | |
| wp_enqueue_style('oleindesign-editor-style', plugins_url('editor-style.css', __FILE__)); | |
| } | |
| add_action('enqueue_block_editor_assets', 'oleindesign_editor_style_register'); |
This file contains hidden or 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_action( | |
| 'init', | |
| function() { | |
| $tag_slug_args = get_taxonomy('jobs_skill'); | |
| $tag_slug_args->hierarchical = true; | |
| $tag_slug_args->meta_box_cb = 'post_categories_meta_box'; | |
| register_taxonomy('jobs_skill', 'jobs', (array) $tag_slug_args); |