Answers.Body: <p>I don't think there isn't any icon with 'fa-file-spreadsheet' in Civi. Can you check in the New Activity type form if the one you are looking for is present or the one you can select from the list?</p>
  <p>Hover on one of the icons, it should display the icon text which you can use in the code. For example, I would replace <code>fa-file-spreadsheet</code> with <code>fa-plus-square-o</code> from the screenshot below.</p>
  <p>Or you can use the list from <a href="https://fontawesome.com/v4/icons/" rel="nofollow noreferrer">Font-Awesome icons</a>.</p>
  <p>Based on your code example I would use <code>'crm-i fa-file-excel-o'</code></p>
  <p>HTH</p>
  <p>Pradeep</p>
  <p><a href="https://i.sstatic.net/Waj7Q.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/Waj7Q.png" alt="enter image description here" /></a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-11-30T13:34:20.580Z
Answers.Text: OMG, that was so obvious, thanks Pradeep!
Answers.UserDisplayName: Guillaume Sorel
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-11-30T13:35:23.533Z
Answers.Text: 'icon' => 'crm-i fa-file-excel-o' works like a charm :-)
Answers.UserDisplayName: Guillaume Sorel
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-11-30T12:39:00.970Z
Answers.LastActivityDate: 2022-11-30T12:44:11.777Z
Answers.LastEditDate: 2022-11-30T12:44:11.777Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>I've read the <a href="https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_navigationMenu/" rel="nofollow noreferrer">documentation</a> but still tried to add a custom icon to a custom admin menu with an extension</p>
  <pre><code>_custommenu_civix_insert_navigation_menu($menu, 'Docuthèque', [
      'label' =&gt; 'Dossier formation FC PSE1',
      'name' =&gt; 'Dossier formation FC PSE1',
      'url' =&gt; 'https://ffmns.gestad.net/documents/2022/11/dossier-fc-pse1.xlsx/',
      'permission' =&gt; 'access CiviCRM',
      'attr' =&gt; ['target' =&gt; '_blank'],
      'icon' =&gt; 'crm-i fa-file-spreadsheet'
    ]);
  </code></pre>
  <p>It doesn't work but can you confirm that this is really not possible?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-11-30T12:25:55.753Z
Comments.Text: Can you include the custom code params?
Comments.UserDisplayName: Pradeep Nayak
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-11-30T12:35:17.393Z
Comments.Text: edited. The menu works, just the icon doesn't show up
Comments.UserDisplayName: Guillaume Sorel
Tags: <menu>
Title: How to add an fa-icon to a custom menu?
ThreadText: # How to add an fa-icon to a custom menu?
  
  (Asked by: username_0 on 2022-11-30)
  
  I've read the documentation but still tried to add a custom icon to a custom admin menu with an extension
  _custommenu_civix_insert_navigation_menu($menu, 'Docuthèque', [
      'label' => 'Dossier formation FC PSE1',
      'name' => 'Dossier formation FC PSE1',
      'url' => 'https://ffmns.gestad.net/documents/2022/11/dossier-fc-pse1.xlsx/',
      'permission' => 'access CiviCRM',
      'attr' => ['target' => '_blank'],
      'icon' => 'crm-i fa-file-spreadsheet'
    ]);
  
  It doesn't work but can you confirm that this is really not possible?
  
  **Tags:** menu
  
  > **Comments:**
  > **username_1**: Can you include the custom code params?  
  > **username_0**: edited. The menu works, just the icon doesn't show up  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2022-11-30. Score: 1 | Accepted answer
  
  I don't think there isn't any icon with 'fa-file-spreadsheet' in Civi. Can you check in the New Activity type form if the one you are looking for is present or the one you can select from the list?
  
  Hover on one of the icons, it should display the icon text which you can use in the code. For example, I would replace `fa-file-spreadsheet` with `fa-plus-square-o` from the screenshot below.
  
  Or you can use the list from [Font-Awesome icons](https://fontawesome.com/v4/icons/).
  
  Based on your code example I would use `'crm-i fa-file-excel-o'`
  
  HTH
  
  Pradeep
  
  [![enter image description here](https://i.sstatic.net/Waj7Q.png)](https://i.sstatic.net/Waj7Q.png)
  
  > **Comments:**
  > **username_0**: OMG, that was so obvious, thanks Pradeep!  
  > **username_0**: 'icon' => 'crm-i fa-file-excel-o' works like a charm :-)  
  
  ---
  
  