Disable ‘Add Widget Area’ form
-
How to disable add widget area from Apprearance > widgets?
Viewing 4 replies - 1 through 4 (of 4 total)
-
If this is in a theme you are using, you’ll have to contact the theme author. We do not support themes that use Redux.
If I deactivate the Redux Framework plugin it will disappeared. its a theme built from scratch.
here are my arguments.$args = array(
'opt_name' => $opt_name, // REQUIRED!! Change these values as you need/desire. 'display_name' => $theme->get( 'Name' ), // Name that appears at the top of your panel. 'display_version' => $theme->get( 'Version' ), // Version that appears at the top of your panel. 'menu_type' => 'menu', // Specify if the admin menu should appear or not. Options: menu or submenu (Under appearance only). 'allow_sub_menu' => true, // Show the sections below the admin menu item or not. 'menu_title' => esc_html__( 'Theme Options'), 'page_title' => esc_html__( 'Theme Options'), 'disable_google_fonts_link' => false, // Disable this in case you want to create your own Google fonts loader. 'admin_bar' => false, // Show the panel pages on the admin bar. 'admin_bar_icon' => 'dashicons-portfolio', // Choose an icon for the admin bar menu. 'admin_bar_priority' => 0, // Choose a priority for the admin bar menu. 'global_variable' => '', // Set a different name for your global variable other than the opt_name. 'dev_mode' => false, // Show the time the page took to load, etc. 'customizer' => true, // Enable basic customizer support. 'page_priority' => 100, // Order where the menu appears in the admin area. If there is any conflict, something will not show. Warning. 'page_parent' => 'themes.php', 'page_permissions' => 'manage_options', // Permissions needed to access the options panel. 'menu_icon' => '', // Specify a custom URL to an icon. 'last_tab' => '', // Force your panel to always open to a specific tab (by id). 'page_icon' => 'icon-themes', // Icon displayed in the admin panel next to your menu_title. 'page_slug' => '_options', // Page slug used to denote the panel. 'save_defaults' => true, // On load save the defaults to DB before user clicks save or not. 'default_show' => false, // If true, shows the default value next to each field that is not the default value. 'default_mark' => '',// What to print by the field's title if the value shown is default. Suggested: *. 'show_import_export' => false,// Shows the Import/Export panel when not used as a field. 'transient_time' => 60 * MINUTE_IN_SECONDS,// CAREFUL -> These options are for advanced use only. 'output' => true,// Global shut-off for dynamic CSS output by the framework. Will also disable google fonts output. 'output_tag' => true,// Allows dynamic CSS to be generated for customizer and google fonts, but stops the dynamic CSS from going to the head. 'flyout_submenus' => true, // Enable or disable flyout menus when hovering over a menu with submenus. 'font_display' => 'swap', // Mode to display fonts (auto|block|swap|fallback|optional) // HINTS. 'hints' => array( 'icon' => 'el el-question-sign', 'icon_position' => 'right', 'icon_color' => 'lightgray', 'icon_size' => 'normal', 'tip_style' => array( 'color' => 'light', 'shadow' => true, 'rounded' => false, 'style' => '', ), 'tip_position' => array( 'my' => 'top left', 'at' => 'bottom right', ), 'tip_effect' => array( 'show' => array( 'effect' => 'slide', 'duration' => '500', 'event' => 'mouseover', ), 'hide' => array( 'effect' => 'slide', 'duration' => '500', 'event' => 'click mouseleave', ), ), ),);
I added a new global arg,
widget_areato enable to disable the widget area extension. Please try out via the Redux beta here: https://github.com/reduxframework/redux-framework/archive/refs/heads/master.zipHi Kev Provance,
Great! The add widget are form is gone now, hope you will release new update soon!
Thanks
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘Disable ‘Add Widget Area’ form’ is closed to new replies.