编辑文章页面,修改侧边栏的分类多选框的样式。

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了编辑文章页面,修改侧边栏的分类多选框的样式。相关的知识,希望对你有一定的参考价值。

function change_cat_meta_postbox_css(){
?>
<style type="text/css">
.wp-tab-panel, .categorydiv div.tabs-panel,
.customlinkdiv div.tabs-panel,
.posttypediv div.tabs-panel,
.taxonomydiv div.tabs-panel {
min-height: 42px;
max-height: 1000px;/* change this to own wishes */(这个我用到了)
overflow: auto;
padding: 0 0.9em;
border: solid 1px #dfdfdf;
background-color: #fdfdfd;
}
</style><?php
}
add_action(‘admin_head‘, ‘change_cat_meta_postbox_css‘);

以上是关于编辑文章页面,修改侧边栏的分类多选框的样式。的主要内容,如果未能解决你的问题,请参考以下文章

如何让wordpress首页完全去掉侧边栏

WordPress窗体化侧边栏

如何修改你的VScode的侧边栏的字体大小(MAC)

Chrome扩展将侧边栏注入页面

antd+vue3 多选框的值为对象数组

使用 react-router-dom 停止页面中侧边栏的重新渲染