Unknown order handler on header
Support › MB Settings Page › Unknown order handler on headerResolved
- This topic has 4 replies, 2 voices, and was last updated 4 years, 8 months ago by
LU.
-
AuthorPosts
-
August 24, 2020 at 12:37 AM #21416
LU
ParticipantHi
After I update the plugin and WP core.
I just found there is a "handle-actions" on the box header. (one up arrow and one down arrow)
Do you know what's happening for this? How to remove it?this is for setting page:
$settings_pages[] = array( 'id' => 'some-options', 'option_name' => 'some-options', 'menu_title' => 'title, 'icon_url' => 'dashicons-megaphone', 'style' => 'no-boxes', 'columns' => 1, 'tab_style' => 'left', 'tabs' => $some_array, 'capability' => 'edit_some_options', );
this what I put the metabox to setting page,
I use some dynamic value to generate tab content.foreach ($this->theme_options['account_group'] as $tab) { $meta_boxes[] = array( 'title' => 'title', 'id' => $tab['account_id'] . '_account', 'class' => 'details_group', 'settings_pages' => 'some-options', 'tab' => $tab['account_id'], 'show' => array( 'relation' => 'OR', ), 'include' => array( 'relation' => $relation, 'user_id' => $tab['able_edit_id'], 'user_role' => $available_role, ), 'fields' => array( array( 'id' => $tab['account_id'].'_detail_group', 'type' => 'group', 'clone' => 1, 'max_clone' => 10, 'default_state' => 'expanded', 'collapsible' => true, 'save_state' => true, 'sort_clone' => true, 'group_title' => $tab['account_title'], 'add_button' => esc_html__( '+ Add More', 'GNEWSlang' ), 'fields' => array( .... some box array here
Please help, thank you
August 24, 2020 at 8:51 AM #21420Long Nguyen
ModeratorHi,
WordPress version 5.5 supports to sort, drag and drop meta boxes. You can use this custom CSS code to remove buttons (up and down) on the settings page.
.handle-order-higher, .handle-order-lower { display: none; }
Apply the admin CSS code with this plugin https://wordpress.org/plugins/admin-css-mu/.
August 24, 2020 at 7:25 PM #21433LU
ParticipantThank you for replying.
But I found this is useless. Can not move anything?Are there anyway to make it able to move the item?
If not, Are there any filter to remove it? Or only CSS?August 25, 2020 at 8:59 AM #21440Long Nguyen
ModeratorHi,
It helps the user move up/down meta boxes (more than 2 meta boxes), see my screen record https://www.loom.com/share/bad88f48d4ff4b68adeca0e7498365dd.
There is no filter to remove buttons up/down, you can take a look in this file of WordPress core https://github.com/WordPress/WordPress/blob/master/wp-admin/includes/template.php#L1336-L1367.
August 25, 2020 at 9:11 AM #21442LU
ParticipantGot it!
thank you so much -
AuthorPosts
- You must be logged in to reply to this topic.