Title: Admin Menu CSS
Last modified: August 30, 2016

---

# Admin Menu CSS

 *  [Jarod Thornton](https://wordpress.org/support/users/jarmerson/)
 * (@jarmerson)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/admin-menu-css/)
 * Good morning,
 * I love the plugin. It’s a great solution for sites with many pages. My clients
   seem to appreciate it.
 * My situation requires that I have complete control over elements within admin.
   The menu of pages output by your plugin should be accessible, but certain pages
   unlisted. Hiding the li.nestedSortable on a per-page basis isn’t possible so 
   I needed to find a work-around.
 * I don’t like editing core plugin files, but in this case I don’t have another
   option interim. So I thought I would suggest adding this solution to assign classes
   unique to the page ID for CSS.
 * **Here’s my suggested edit of the index.php on line 233 file to append the page
   ID within the class.**
 * Original: `$output .= "<li class='$class''data-post-id='".$one_page->ID."'>";`
 * Edit: `$output .= "<li class='$class css-".$one_page->ID."''data-post-id='".$
   one_page->ID."'>";`
 * Very simple solution and now menu page links have unique classes for CSS. 🙂
 * Perhaps consider this in the next update, if any?
 * [https://wordpress.org/plugins/admin-menu-tree-page-view/](https://wordpress.org/plugins/admin-menu-tree-page-view/)

The topic ‘Admin Menu CSS’ is closed to new replies.

 * ![](https://ps.w.org/admin-menu-tree-page-view/assets/icon-256x256.png?rev=2984432)
 * [Admin Menu Tree Page View](https://wordpress.org/plugins/admin-menu-tree-page-view/)
 * [Support Threads](https://wordpress.org/support/plugin/admin-menu-tree-page-view/)
 * [Active Topics](https://wordpress.org/support/plugin/admin-menu-tree-page-view/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/admin-menu-tree-page-view/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/admin-menu-tree-page-view/reviews/)

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)

 * 0 replies
 * 1 participant
 * Last reply from: [Jarod Thornton](https://wordpress.org/support/users/jarmerson/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/admin-menu-css/)
 * Status: not resolved