You may want to look at adding admin style and then targeting the menu:
function admin_style() {
wp_enqueue_style('admin-styles', get_template_directory_uri().'/admin.css');
}
add_action('admin_enqueue_scripts', 'admin_style');
This is just an example:
#menu-comments:before {
border-top: 1px solid red;
content: "";
display: block;
margin-top: 10px;
margin-bottom: 10px;
width: 100%;
}
This adds a red divider above the “comments” menu, but adjust this to your own requirements.
Related Posts:
- How to remove admin menu pages inserted by plugins?
- Modify custom Users Manage page
- How to get value from custom backend menu
- Retrieve and display data from custom db table in admin area?
- How to add another page in appearance tab of admin panel?
- $wp_customize->remove_section for customizer setting?
- Admin Panel – Custom Menu Sub-Item LINK
- add an option to the read page
- How to remove admin menu pages inserted by plugins and themes in the top admin bar?
- Usage of custom post types in a custom admin menu
- Mimicking admin panel menu from wordpress 3.0.1
- Custom admin menu items
- Add helper text in custom-header section in admin
- How to fix custom add menu page preventing media library from loading
- admin aoolbar add_node() and pulling in my post slug
- My connecting URL form in html to PHP does not work
- Custom maintenance page
- How to customize the default HTML for WordPress Attachments
- Customizing the Subject Field in WordPress’ Notification Emails?
- How to move wp-content (or uploads) outside of the WordPress directory
- How can I integrate pages written in something other than PHP?
- Custom field values in permalink
- Redirect to requested page after (custom) login
- Custom protected password page with ACF
- Page load requires a trailing “/” [closed]
- Customize in category page
- Custom Dashboard Home Screen Options
- How to get WordPress to accept the tag in articles (or other alternatives)
- How do I change the default admin color scheme in MP6
- dynamic external javascript generated using php
- Show Custom Taxonomy Slug(s)?
- What’s the proper way to use a custom table? [closed]
- How to retrieve the value stored in a multi-dimensional array and SUM the entries?
- How can a single line in a blog post take down my server?
- Adding a Table to the wordpress database
- Integrate WordPress into existing website
- How can I use get_bloginfo(‘admin_email’) in a custom PHP file?
- how can I change the background color of all posts on my server?
- Turn off redirect to canonical domain (or host website on any hostname)
- CSS to remove “comments count” icon from main page [closed]
- What’s wrong with Customizing new user notification email by add_filter?
- Automatically Update Woocommerce Prices [closed]
- Multiple Tinymce/wp_editor in WordPress >4.8
- Custom title, Bones theme
- CPT Loop with ACF and passing ID between Loops
- Showcase elementor templates
- Add clickable arrows to parent menu items with children elements e.g. with
- How to change the category url jusy show /category/%category_id% in wordpress?
- How can I display a PHP foreach loop’s answers by AJAX
- No shipping method has been selected [closed]
- How can I setup up an a pre-populated pdf based on what was entered? [closed]
- Child Theme with multiple css files
- Organizing the position of widgetized areas in the backend
- Why the css in twenteenfourteen-child theme take no effect?
- Get wordpress taxonomy slug name(s) to use as div class
- Why does my Posts page only show a single post when using Thematic?
- Specific colours for wordpress author ids
- add custom content to appearance/widgets screen
- css media query question [closed]
- How to create a page /1 using ?
- Open “Visit site” in a new window?
- theme customizer – can a single option pass multiple values?
- Separate header for static home page and posts page
- Pagination with custom field
- What’s the right way to share data between widgets?
- Importing specified data/field
- Missing current_page_item in custom menu
- Attach File Funcion for Common people
- How to retain visual breadcrumbs w/ tricky URL structure? Custom post template?
- query variables for custom taxonomies
- Adding overlay search to wordpress using add action/filter
- wordpress custom fields loop
- why won’t my custom css load with the enqueue method or any other method?
- How do I add a dropdown menu to a form?
- How can I create a Custom Page? (not a page template!!)
- Adding a drop-down (select tag) option under Menu Settings in WordPress Admin
- Delete page titles
- Duplicate Header and Footer
- Send email notification when post type product is publish from pending status
- WordPress Customizer: Check for value of CSS selector and replace it
- Custom login doesn’t stay
- Smarter Document Management links between three WordPress sites sought
- data retrieval presents last set of data
- How to add custom Author Info Box to blog posts “only” and NOT custom post templates
- Bio comes up when the visitor clicks on a picture
- Accountless password generation
- Creating a Treeview Listing of a Directory
- WooCommerce – Adding custom HTML to specific product pages
- How do I move my sites to a child theme without loosing customisation?
- How to create new page can get custom field other post in wordpress
- Create a google friendly header with text and logo
- Disallow “contributors” to edit their own posts once they’ve been set to “Pending Review”
- insert autofocus in a custom taxonomy form
- display my pages html
- How can I pass value to function in add_menu_page?
- customize footer widgets area
- Accessing + retrieving custom database in WordPress
- updated permalink structure on localhost does not work
- adding new html css to wordpress section from codepen [closed]
- How can I make a search term redirect to a page