This will put one separator right after ‘Appearance’ and one right before ‘Plugins’. Just make sure to give your menu position 62 or 63. You can just add it to whatever file is adding the admin page to begin with. This should be called after everything else has been added.
function jpb_menu_isolator(){
global $menu;
$menu[61] = array('', 'read', 'separator3', '', 'wp-menu-separator');
$menu[64] = array('', 'read', 'separator3', '', 'wp-menu-separator');
uksort($menu,'strnatcasecmp');
}
add_action( 'admin_menu', 'jpb_menu_isolator', 1000 );
Related Posts:
- How to limit wordpress menu depth in admin panel
- Change admin bar to default:off
- How to make a theme with more than one CSS file?
- Remove Customize Background and Header from Appearance admin menu without CSS or JS
- Including CSS and JS on Admin Screen of Custom Theme Options
- How to customize wordpress login/register pages?
- WordPress settings API error when checkbox unchecked
- Why adding Categories does not auto refresh in Backend while using my custom theme?
- Add social icons in a theme through custom admin menu
- Different Admin Theme – Based on Role?
- Display site admin profile fields in header.php
- menu behavior is not as expected
- Why is the Links Manager visible?
- How to make content editable from admin page?
- moving an admin submenu item to a top-level position
- How can I display/hide certain content based on a Theme Option field?
- Is it possible to edit the styling of the admin panel from within a custom theme?
- Where can i design and modify a new mail template for sending emails to users when commenting?
- Can’t work out why widget contents disappear from admin
- Show woocommerce categories on my theme menu styling
- Permanently activate WordPress theme
- Call to undefined function add_menu_page() on theme activation
- Add attachment for all images in post
- Efficiency of wp_options vs a new table
- How to remove text “Log In” from login page
- Admin: sub menu doesnt display under apperance when activate my themes
- Can’t use admin_enqueue_scripts or wp_enqueue_script
- How to include a file only on dashboard widgets page?
- Thesis -style Navigation
- How to remove permalinks links presents in each page of my site?
- show_option_none not working in meta box
- How to make a function occurs for one time?
- theme directory fallback image outputs url and not the image
- How to add custom field option with menu?
- How to remove menu from WP-Admin menu
- How do I change the tagline input to textarea?
- Menu items description? Custom Walker for wp_nav_menu()
- How to define and link full path to css located at a random folder on header.php
- Sizing screenshot.png without losing aspect ratio
- Software for WordPress Theme and Plugin Development? [closed]
- When to use is_home() vs is_front_page()?
- What is the preferred way to add custom javascript files to the site?
- Get the blog page URL set in Options
- How to remove admin menu pages inserted by plugins?
- How to create .pot files with POedit?
- How do I get the theme URL in PHP?
- Why when I submit a form in wordpress it loads a 404 page though URL is correct
- What is the constant WP_USE_THEMES for?
- Worthwhile to restrict direct access of theme files?
- How Do I Protect My Premium WordPress App Theme from Copying?
- How to detect mobile devices and present them a specific theme?
- Using wp_add_inline_style without a stylesheet
- How to add posts to custom menus?
- WordPress Theme Preview Image
- How To extend WP_Customize_Control
- Add a Separator to the Admin Menu?
- What is the difference between front-page.php and home.php? [duplicate]
- How can I get page slug
- Does the functions.php file ever get called during an AJAX call? Debug AJAX
- When to use _e and __ for the translation?
- What is a Theme textdomain?
- How to show a custom meta box on the “Quick Edit” screen?
- How to add CSS class to custom logo?
- How to add custom css file in theme?
- How important is it to enqueue a theme’s stylesheet?
- Placing a Custom Post Type Menu Above the Posts Menu Using menu_position?
- CSS not updating in browser when I change it
- Display Search Result Count
- wp_nav_menu(), how to change class?
- Adding a custom admin page
- theme path in javascript file
- Is wp_is_mobile() effective?
- Display Menu Name using wp_nav_menu
- Making update notification functionality for my themes
- What questions do you ask when asked to give an estimate on theme development?
- How to remove dashicons.min.css from frontend?
- How do I remove a pre-existing customizer setting?
- Minimum Template Files for Theme Development
- What’s the difference between home.php and index.php?
- pass object/JSON to wp_localize_script
- get_template_part vs action hooks in themes
- Theme Activate Hook
- Solutions for generating dynamic javascript / CSS
- wp_redirect() – headers already sent
- How to remove entire admin menu?
- Can I create my own “Recent Posts” widget or customize the existing one?
- Custom single template for a specific category
- how can I add an icon/image for a child theme?
- How can I add a URL field to the attachments window?
- The the_post_thumbnail without srcset?
- The proper way to include/require PHP files in WordPress
- Get the first image from post content (eg.: hotlinked images)
- after_setup_theme always runs
- When to use add_action(‘init’) vs add_action(‘wp_enqueue_scripts’)
- Getting failure when using filemtime() with wp_enqueue_style
- Do I actually need to link my theme’s style.css in the theme files
- Why is wp_head() creating a top margin at the top of my theme header?
- How to Add a Third Level Sub Menu to the WordPress Admin Menu
- How to store widget fields data as an array?
- How do I add version control to my workflow?