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:cover {"customOverlayColor":"#f3f3f3","minHeight":100,"contentPosition":"center center","style":{"spacing":{"padding":{"top":"0px","right":"0px","bottom":"0px","left":"0px"}}}} --> | |
<div class="wp-block-cover has-background-dim" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;background-color:#f3f3f3;min-height:100px"><div class="wp-block-cover__inner-container"><!-- wp:cover {"overlayColor":"black","minHeight":30} --> | |
<div class="wp-block-cover has-black-background-color has-background-dim" style="min-height:30px"><div class="wp-block-cover__inner-container"><!-- wp:heading {"textAlign":"center","level":4,"className":"is-style-vk-heading-plain mb-0"} --> | |
<h4 class="has-text-align-center is-style-vk-heading-plain mb-0"> e-Bookで読める、今だから特典 </h4> | |
<!-- /wp:heading --></div></div> | |
<!-- /wp:cover --> | |
<!-- wp:cover {"customOverlayColor":"#f2f2f2","minHeight":100,"style":{"spacing":{"padding":{"top":"20px","right":"20px","bottom":"0px","left":"20px"}}}} --> | |
<div class="wp-block-co |
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 my_disable_future_publish( $id, $post ) { | |
global $wpdb; | |
// 即時公開対象の投稿タイプを指定 | |
if ( 'post' === $post->post_type ) { | |
$sql = 'UPDATE `' . $wpdb->prefix . 'posts` '; | |
$sql .= 'SET post_status = "publish" '; | |
$sql .= 'WHERE post_status = "future"'; |
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
.subSection .page_item_has_children li, | |
.subSection .menu-item-has-children li, | |
.sub-section .page_item_has_children li, | |
.sub-section .menu-item-has-children li{ | |
display:none; | |
} | |
.subSection .page_item_has_children.current_page_item li, | |
.subSection .menu-item-has-children.current-menu-item li, | |
.sub-section .page_item_has_children.current_page_item li, | |
.sub-section .menu-item-has-children.current-menu-item li{ |
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
// 子テーマの functions.php などに記載してください。 | |
// 設定 > パーマリンク を必ず保存してください。 | |
add_action( 'init', 'my_create_page_tag' ); | |
function my_create_page_tag() { | |
register_taxonomy( | |
'page-tag', | |
'page', | |
array( | |
'label' => '固定ページタグ', | |
'rewrite' => array( 'slug' => 'page-tag' ), |
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
/* スライドナビの最大幅を600pxに */ | |
@media (min-width: 992px) { | |
body.device-pc .vk-mobile-nav { | |
max-width:600px; | |
} | |
} | |
/* PCでもモバイルメニューが表示されるように */ | |
@media (min-width: 992px) { | |
body.device-pc .vk-mobile-nav-menu-btn{ |
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:group {"align":"full","style":{"spacing":{"padding":{"left":"0rem","right":"0rem"}}},"layout":{"inherit":true,"type":"constrained"}} --> | |
<div class="wp-block-group alignfull" style="padding-right:0rem;padding-left:0rem"><!-- wp:group {"layout":{"type":"default"}} --> | |
<div class="wp-block-group"><!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"space-between"}} --> | |
<div class="wp-block-group"><!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|30","bottom":"var:preset|spacing|30"}}},"className":"site-logo\u002d\u002dset","layout":{"type":"constrained"}} --> | |
<div class="wp-block-group site-logo--set" style="padding-top:var(--wp--preset--spacing--30);padding-bottom:var(--wp--preset--spacing--30)"><!-- wp:vk-blocks/spacer {"spaceSize":"xs"} --> | |
<div class="wp-block-vk-blocks-spacer vk_spacer vk_spacer-type-margin-top"><div class="vk_block-margin-xs--margin-top"></div></div> | |
<!-- /wp:vk-blocks/spacer --> | |
<!-- wp:site-logo {"width":200,"shouldSyncIcon":false," |
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 | |
/** | |
* Plugin Name: My Plugin | |
* Plugin URI: | |
* Description: これは *** のプラグインです。 | |
* Version: 0.0.0 | |
* Requires at least: 6.0 | |
* Requires PHP: 7.4 | |
* License: GPL 2.0 or Later | |
* |
OlderNewer