在enfold主题里面的functions.php文件中添加如下代码:
add_action('admin_head', 'remove_reset_button'); function remove_reset_button() { echo '<style> .avia_footer_reset{ display: none !important; } </style>'; } add_action('admin_head', 'hide_theme_options'); function hide_theme_options() { echo '<style> #wpbody-content #avia_options_page .avia_button.avia_button_grey.avia_reset,#wpbody-content #avia_options_page .avia_section_header.goto_update,#wpbody-content #avia_options_page .avia_section_header.goto_upload,#wpbody-content #avia_options_page .avia_section_header.goto_demo { display: none !important; } </style>'; }
未经允许不得转载:哈勃私语 » enfold主题屏蔽重置,导入导出等选项
本文共570个字 创建时间:2019年1月3日16:02