admin管理员组文章数量:1335380
This is how I see the admin view of all posts I need to fix that so that it will give a good view how can I do that? See the heading which came under custom side bar in that each line is one one letter i want it as a single line.
This is how I see the admin view of all posts I need to fix that so that it will give a good view how can I do that? See the heading which came under custom side bar in that each line is one one letter i want it as a single line.
Share Improve this question asked May 31, 2020 at 5:35 arunwebberarunwebber 32 bronze badges 2- Is this WordPress or self-hosted? If self-hosted, how many plugins do you have active? What happens if you start deactivating them? – Matthew Brown aka Lord Matt Commented May 31, 2020 at 17:38
- 1 This is a wordpress self hosted website – arunwebber Commented Jun 1, 2020 at 8:25
1 Answer
Reset to default 1This obvious because WordPress post has 6 columns normally and you have 13.
However, the problem is title bar is getting squeezed. In latest version the column widths are like this:
The Check box column: 2.2em ~ 3%
The Title column: flexible as its width is default(auto) (40% normally)
The Author column: 10%
The Categories column: 15%
The Tags column: 15%
The Comments column: 5.5em ~ 6.7%
The Date column: 10%
Solution
Add title width and specify a width but in em.
.column-title {
width: 15em;
}
Adjust this value to get desired look.
HOW TO APPLY
Use this code in your function.php
file or you can implement this in side a custom plugin.
Here we have a small style script, in case you have more styles to add to admin back-end then add it using a custom css file.
For small amount of script.
function adjust_admin_style() {
echo '<style>
.column-title {
width: 15em;
}
</style>';
}
add_action('admin_head', 'adjust_admin_style');
Implement styles in large scales
function prefix_admin_style() {
wp_enqueue_style('admin-styles', get_template_directory_uri().'/yourstyle.css');
}
add_action('admin_enqueue_scripts', 'prefix_admin_style');
本文标签: How to fix the view of admin all posts
版权声明:本文标题:How to fix the view of admin all posts 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742381909a2464262.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论