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
var pagetop = $('#page_top'); //ボタンを指定 | |
pagetop.hide(); | |
$(window).scroll(function () { | |
if ($(this).scrollTop() > 100) { | |
pagetop.fadeIn(); | |
} else { | |
pagetop.fadeOut(); | |
} | |
}); |
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
.table-wrap { | |
display: block; | |
overflow-x: scroll; | |
white-space: nowrap; | |
overflow-scrolling: touch; | |
} |
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 id="modal-id" class="modal modal-open"> | |
<button class="modal-close">X</button> | |
</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
$('.p-faq__dt').on( 'click', function() { | |
$(this).next().slideToggle(); | |
$(this).toggleClass( 'is-open' ); | |
}); |
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 plugin install debug-bar query-monitor log-deprecated-notices monster-widget developer theme-check --activate |
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
<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 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
<ul class="information-tabs"> | |
<li class="information-tabs__item is-active">tab1</li> | |
<li class="information-tabs__item">tab2</li> | |
<li class="information-tabs__item">tab3</li> | |
</ul> | |
<ul class="information-contents"> | |
<li class="information-contents__item is-show">Content1</li> | |
<li class="information-contents__item">Content2</li> | |
<li class="information-contents__item">Content3</li> | |
</ul> |
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
<?php | |
$parent_id = $post->ancestors[count($post->ancestors) - 1]; // 最上の親ページのIDを取得 | |
echo $parent_slug = get_post($parent_id)->post_name; // 最上の親ページのスラッグを取得して表示 | |
echo $parent_title = get_post($parent_id)->post_title; // 最上の親ページのタイトルを取得して表示 | |
echo get_permalink($parent_id); // 最上の親ページの URL を表示 | |
?> |
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
// 3 col | |
.container::after{ | |
content:""; | |
display: block; | |
width:30%; | |
} | |
// 4 col | |
.container::before{ | |
content:""; |