Skip to content

Commit

Permalink
投稿のタグ編集画面・エディターのタグオプション部分に親タグを選択できないように非表示(おそらく動的に出力されるID押しをしているので不具合…
Browse files Browse the repository at this point in the history
…が出る可能性ありということでテスト)
  • Loading branch information
yhira committed Feb 22, 2024
1 parent ed9eec2 commit 57280c1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions css/admin.css
Expand Up @@ -23523,4 +23523,8 @@ textarea[name=the_page_memo] {
div.widget {
margin: 0 !important;
}
}
.taxonomy-post_tag .term-parent-wrap,
.post-type-post .editor-post-taxonomies__hierarchical-terms-input + .components-base-control:has(#inspector-select-control-2) {
display: none;
}
7 changes: 7 additions & 0 deletions scss/admin.scss
Expand Up @@ -1115,4 +1115,11 @@ textarea[name="the_page_memo"]{
div.widget {
margin: 0 !important;
}
}

//WordPressデフォルトのタグ(post_tag)一覧ページでは親を選択するドロップダウンを表示しない
.taxonomy-post_tag .term-parent-wrap,
//投稿ページのタグ選択画面では親を選択するドロップダウンを表示しない
.post-type-post .editor-post-taxonomies__hierarchical-terms-input + .components-base-control:has(#inspector-select-control-2){
display: none;
}

0 comments on commit 57280c1

Please sign in to comment.