<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Add own icon to icon library? in Blog, Website &amp; Page Publishing</title>
    <link>https://community.hubspot.com/t5/Blog-Website-Page-Publishing/Add-own-icon-to-icon-library/m-p/1100504#M14597</link>
    <description>&lt;P&gt;Is it possible to add a new icon, that I have designed myself, to be used as an icon in HubSpot? I have a set of icons I want to use instead of those available via Font Awesome.&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jan 2025 11:57:37 GMT</pubDate>
    <dc:creator>PRehn</dc:creator>
    <dc:date>2025-01-28T11:57:37Z</dc:date>
    <item>
      <title>Add own icon to icon library?</title>
      <link>https://community.hubspot.com/t5/Blog-Website-Page-Publishing/Add-own-icon-to-icon-library/m-p/1100504#M14597</link>
      <description>&lt;P&gt;Is it possible to add a new icon, that I have designed myself, to be used as an icon in HubSpot? I have a set of icons I want to use instead of those available via Font Awesome.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 11:57:37 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Blog-Website-Page-Publishing/Add-own-icon-to-icon-library/m-p/1100504#M14597</guid>
      <dc:creator>PRehn</dc:creator>
      <dc:date>2025-01-28T11:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: Add own icon to icon library?</title>
      <link>https://community.hubspot.com/t5/Blog-Website-Page-Publishing/Add-own-icon-to-icon-library/m-p/1100737#M14600</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/887325"&gt;@PRehn&lt;/a&gt;. Sorry, I have not seen a way to manipulate the Icon library. It's directly tied to Font Awesome.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That being said, you can make an icon folder in File Manager and use the Image insert function to add whatever graphics you have uploaded to Hubspot. This is what I do when I'm using custom icons.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 17:31:54 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Blog-Website-Page-Publishing/Add-own-icon-to-icon-library/m-p/1100737#M14600</guid>
      <dc:creator>Crystal_Hopper</dc:creator>
      <dc:date>2025-01-28T17:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: Add own icon to icon library?</title>
      <link>https://community.hubspot.com/t5/Blog-Website-Page-Publishing/Add-own-icon-to-icon-library/m-p/1101010#M14602</link>
      <description>&lt;P&gt;It's just that in some modules, there is only the possibility to add icons and when choosing icons I only get to the FA library. Do you know a way to tweak this?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 07:43:40 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Blog-Website-Page-Publishing/Add-own-icon-to-icon-library/m-p/1101010#M14602</guid>
      <dc:creator>PRehn</dc:creator>
      <dc:date>2025-01-29T07:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: Add own icon to icon library?</title>
      <link>https://community.hubspot.com/t5/Blog-Website-Page-Publishing/Add-own-icon-to-icon-library/m-p/1101100#M14603</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/887325"&gt;@PRehn&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;yes it's possible to integrate a custom icon library. For instance I'm using Phosphor Icons on my &lt;A href="https://graphispot.com" target="_blank" rel="noopener"&gt;GraphiSpot&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's a bit code related, but depending on the desired result quite very simple to implement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First you have to decide what icon library you'd like to use.&lt;/P&gt;
&lt;P&gt;If it's an icon library that provides you some sort of code-snippet(like FontAwesomePro) to get it to work, you can put this code-snippet either in the base.html(might have a different name) of your theme or in the Page header settings, which you find here: Settings(gear icon top right) -&amp;gt; Content -&amp;gt; Pages -&amp;gt; HTML Header.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once done, you can clone the desired module (or create a new one) add a text("Icon name";not rich-text) field to it, paste following code and you're done.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{% set custom_icon_name = module.icon_name|cut("fa-") %}
...
&amp;lt;i class="fa-regular fa-{{ custom_icon_name }}"&amp;gt;&amp;lt;/i&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Everytime you want to use an icon from FontAwesomePro, you'll need to simply put in the name of it and it works. You can even go further and use a choice field("Icon name selector") for "most used" icons or if you want to provide not all icons. To do so, create a choice field and put the icon name as value in it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code will look very similar:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;i class="fa-regular fa-{{ module.icon_name_selector }}"&amp;gt;&amp;lt;/i&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can create a mix of those two options like by adding a second choice field("Icon select") with "custom" and "selector" values and write the code like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{% if module.icon_select == "custom" %}
   {% set custom_icon_name = module.custom_icon_name|cut("fa-") %}
{% elif module.icon_select == "selector" %}
   {% set custom_icon_name = module.custom_icon_selector %}
{% endif %}
...

&amp;lt;i class="fa-regular fa-{{ custom_icon_name }}"&amp;gt;&amp;lt;/i&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are endless options here&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your icon library is providing you fonts(like Phosphor Icons do), it's a bit more on the coding side of things, but quite easy. To implement, you can upload them to the theme folder so your structure looks like&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;- theme
- - css
- - - theme.css
- - - main.css
- - - icons
- - - - iconfont.css
- - fonts
- - - iconfont.ttf
- - - iconfont.otf
- - - ...
...&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your theme.css just add a so-called&amp;nbsp;@font-face rule at the top which looks like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;@font-face { 
        font-family: "Phosphor-Light";
        src:
            url("{{ get_asset_url('./../fonts/phosphor-light/Phosphor-Light.woff2') }}") format("woff2"),
            url("{{ get_asset_url('./../fonts/phosphor-light/Phosphor-Light.woff') }}") format("woff"),
            url("{{ get_asset_url('./../fonts/phosphor-light/Phosphor-Light.ttf') }}") format("truetype"),
            url("{{ get_asset_url('./../fonts/phosphor-light/Phosphor-Light.svg') }}") format("svg");
        font-weight: normal;
        font-style: normal;
        font-display: block;
    }&lt;/LI-CODE&gt;
&lt;P&gt;simply replace the name and paths to your use-case.&lt;/P&gt;
&lt;P&gt;Also there should be a CSS provided by the icon library. You should include it in the main.css like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{% include "./icons/iconfont.css" %}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To use them, it's the same as the first option(text/choice/mix)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Other options:&lt;/P&gt;
&lt;P&gt;- Image upload. Yes, you can use the image field for uploading icons as SVGs.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Choice field. Something that many people don't know: You can place the whole SVG code as a value of a choice field &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; &amp;lt;- this might be the best option for your situation&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Happy to chat, if you have further questions.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;best,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anton&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 11:24:23 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Blog-Website-Page-Publishing/Add-own-icon-to-icon-library/m-p/1101100#M14603</guid>
      <dc:creator>Anton</dc:creator>
      <dc:date>2025-01-29T11:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: Add own icon to icon library?</title>
      <link>https://community.hubspot.com/t5/Blog-Website-Page-Publishing/Add-own-icon-to-icon-library/m-p/1101287#M14604</link>
      <description>&lt;P&gt;I found a few other threads that might help also. It does look like, as &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/17186"&gt;@Anton&lt;/a&gt;&amp;nbsp;said, there's some coding that needs to happen:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.hubspot.com/t5/CMS-Development/Add-icons-to-Font-Awesome-s-HubSpot-default-library/m-p/708393" target="_blank"&gt;Solved: HubSpot Community - Add icons to Font Awesome's HubSpot default library? - HubSpot Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.hubspot.com/t5/CMS-Development/implement-font-awesome-pro-icon/m-p/386251" target="_blank"&gt;Solved: HubSpot Community - implement font-awesome pro icon - HubSpot Community&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 16:18:15 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Blog-Website-Page-Publishing/Add-own-icon-to-icon-library/m-p/1101287#M14604</guid>
      <dc:creator>Crystal_Hopper</dc:creator>
      <dc:date>2025-01-29T16:18:15Z</dc:date>
    </item>
  </channel>
</rss>

