WordPress 3.8 正式版已经发布,改版后的仪表盘默认只能2栏布局,而且”显示选项“中已经移除了布局选项。

如果你习惯以单栏显示,可以将下面的代码添加到主题的 functions.php ,就可以恢复布局选项,你就可以选择单栏或2栏显示(测试最多只能2栏)
/**
* 将 <a href="https://www.wpdaxue.com/tag/wordpress-3-8" title="查看与【WordPress 3.8】相关的文章" target="_blank" rel="noopener">WordPress 3.8</a> 仪表盘设置为单栏布局
* https://www.wpdaxue.com/wordpress-3-8-single-column-dashboard.html
*/
function wpdx_screen_layout_columns($columns) {
$columns['dashboard'] = 2;
return $columns;
}
add_filter('screen_layout_columns', 'wpdx_screen_layout_columns');
function wpdx_screen_layout_dashboard() { return 2; }
add_filter('get_user_option_screen_layout_dashboard', 'wpdx_screen_layout_dashboard'); |
/**
* 将 <a href="https://www.wpdaxue.com/tag/wordpress-3-8" title="查看与【WordPress 3.8】相关的文章" target="_blank" rel="noopener">WordPress 3.8</a> 仪表盘设置为单栏布局
* https://www.wpdaxue.com/wordpress-3-8-single-column-dashboard.html
*/
function wpdx_screen_layout_columns($columns) {
$columns['dashboard'] = 2;
return $columns;
}
add_filter('screen_layout_columns', 'wpdx_screen_layout_columns');
function wpdx_screen_layout_dashboard() { return 2; }
add_filter('get_user_option_screen_layout_dashboard', 'wpdx_screen_layout_dashboard');
来源:
https://www.wpdaxue.com/wordpress-3-8-single-column-dashboard.html
微信公众号
手机浏览(小程序)
Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(): Failed to enable crypto in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_32401.jpg): failed to open stream: operation failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57