最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

theme development - Redux Setting on custom created admin page

matteradmin9PV0评论

I am using Redux Framework and I am creating a theme and I want all my theme option on my custom created page Like this

but by default Redux Created a different page like this

I am using this configuration

$options_name = 'wee_redux';
$options_name = apply_filters('wee_redux/options_name', $options_name);
$theme = wp_get_theme();
$args = [
    'opt_name'             => $options_name,
    'display_name'         => $theme->get( 'Name' ),
    'display_version'      => $theme->get( 'Version' ),
    'menu_type'            => 'menu',
    'allow_sub_menu'       => true,
    'menu_title'           => __( 'Theme_options' ),
    'page_title'           => __( 'Theme_options' ),
    'google_api_key'       => '',
    'google_update_weekly' => true,
    'dev_mode'             => false,
    'async_typography'     => true,
    'admin_bar'            => true,
    'admin_bar_icon'       => 'dashicons-portfolio',
    'admin_bar_priority'   => 50,
    'update_notice'        => true,
    'customizer'           => false,
    'page_permissions'     => 'manage_options',
    'use_cdn'              => true,
   ]; 

I am using Redux Framework and I am creating a theme and I want all my theme option on my custom created page Like this

but by default Redux Created a different page like this

I am using this configuration

$options_name = 'wee_redux';
$options_name = apply_filters('wee_redux/options_name', $options_name);
$theme = wp_get_theme();
$args = [
    'opt_name'             => $options_name,
    'display_name'         => $theme->get( 'Name' ),
    'display_version'      => $theme->get( 'Version' ),
    'menu_type'            => 'menu',
    'allow_sub_menu'       => true,
    'menu_title'           => __( 'Theme_options' ),
    'page_title'           => __( 'Theme_options' ),
    'google_api_key'       => '',
    'google_update_weekly' => true,
    'dev_mode'             => false,
    'async_typography'     => true,
    'admin_bar'            => true,
    'admin_bar_icon'       => 'dashicons-portfolio',
    'admin_bar_priority'   => 50,
    'update_notice'        => true,
    'customizer'           => false,
    'page_permissions'     => 'manage_options',
    'use_cdn'              => true,
   ]; 
Share Improve this question edited Apr 11, 2019 at 1:16 fuxia 107k39 gold badges255 silver badges459 bronze badges asked Apr 10, 2019 at 17:56 Aakash BhagatAakash Bhagat 531 silver badge5 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

Change menu_type to submenu. ;)

Post a comment

comment list (0)

  1. No comments so far