Answers.Body: <p>The easiest solution is to simply hide that DOM element using <a href="https://github.com/lindseydiloreto/craft-cpcss" rel="nofollow noreferrer">Control Panel CSS</a>.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-11-08T01:34:55.610Z
Answers.Text: The CPCSS method has solved my immediate problem, but it's certainly possible that the classes or structure of that element could change in a future product update.
  
  My hope is that the Craft team will either add a way to select a parent category from the modal, or add a system setting to hide or disable that button for nested category structures.
Answers.UserDisplayName: Mike Pringle
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-11-06T20:53:30.417Z
Answers.LastActivityDate: 2016-11-06T20:53:30.417Z
Answers.UserDisplayName: Lindsey D
Body: <p>Is there a way to either add a parent selector to the category field modal, or remove/hide the "+ New Category" button when editing an entry?</p>
  
  <p>We are using a category group to contain Locations, which are nested as State > County > City. I recently noticed that several new Cities have been added to the site, but they are all at the root level instead of being nested under the correct State and County parent categories. </p>
  
  <p>This is because when an author creates a new City via the Location field modal while adding or editing an entry, there is no visible way to specify a parent like there is when adding it from the main Categories CP area.</p>
  
  <p>I can see this getting out-of-hand quickly without some way to keep these categories nested properly, so any advice would be appreciated.  Thanks!</p>
  
Tags: <categories><control-panel><field><modal>
Title: Limitation of adding a Category from the CP field modal within an entry
ThreadText: # Limitation of adding a Category from the CP field modal within an entry
  
  (Asked by: username_0 on 2016-11-06)
  
  Is there a way to either add a parent selector to the category field modal, or remove/hide the "+ New Category" button when editing an entry?
  
  We are using a category group to contain Locations, which are nested as State > County > City. I recently noticed that several new Cities have been added to the site, but they are all at the root level instead of being nested under the correct State and County parent categories.
  
  This is because when an author creates a new City via the Location field modal while adding or editing an entry, there is no visible way to specify a parent like there is when adding it from the main Categories CP area.
  
  I can see this getting out-of-hand quickly without some way to keep these categories nested properly, so any advice would be appreciated. Thanks!
  
  **Tags:** categories, control-panel, field, modal
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-11-06. Score: 1 | Accepted answer
  
  The easiest solution is to simply hide that DOM element using [Control Panel CSS](https://github.com/lindseydiloreto/craft-cpcss).
  
  > **Comments:**
  > **username_0**: The CPCSS method has solved my immediate problem, but it's certainly possible that the classes or structure of that element could change in a future product update.  My hope is that the Craft team will either add a way to select a parent category from the modal, or add a system setting to hide or disable that button for nested category structures.  
  
  ---
  
  