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
.snow-monkey-taxonomy-posts .c-entry-summary__figure { | |
background-color:transparent; | |
} | |
.snow-monkey-taxonomy-posts .c-entries__item>a .c-entry-summary__figure>img { | |
-webkit-mask-repeat: no-repeat; | |
mask-repeat: no-repeat; | |
-webkit-mask-position: 50% 50%; | |
mask-position: 50% 50%; | |
-webkit-mask-size: contain; |
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_action( 'admin_menu', function() { | |
add_menu_page( 'Reusable Blocks', '再利用ブロック', 'edit_posts', 'edit.php?post_type=wp_block', '', 'dashicons-block-default', 22 ); | |
} ); |
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_action( | |
'snow_monkey_append_main', | |
function() { | |
$reuse_block = get_post( $id ); // $id は、再利用ブロックのID | |
echo apply_filters( 'the_content', $reuse_block->post_content ); | |
} | |
); |
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_shortcode( 'section', function( $atts ) { | |
extract( shortcode_atts( | |
array( | |
'slug' => '', | |
), $atts ) ); | |
ob_start(); | |
get_template_part( 'section/'.$slug ); | |
$html = ob_get_contents(); | |
ob_end_clean(); | |
return $html; |
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_shortcode( 'inc_file', function ( $atts ) { | |
extract( shortcode_atts( | |
array( | |
'slug' => '', | |
), $atts ) ); | |
ob_start(); | |
get_template_part( 'inc/'.$slug ); | |
$html = ob_get_contents(); | |
ob_end_clean(); | |
return $html; |
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
h1.entry-title { | |
text-align: left; | |
font-size: 2.4rem; | |
} | |
@media (min-width: 700px) { | |
h1.entry-title { | |
font-size: 3.4rem; | |
} | |
} | |
@media (min-width: 1220px) { |
NewerOlder