web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Add a font to Style a button Font list

(0) ShareShare
ReportReport
Posted on by 278

Hi,

I have added a new font according to this link. https://docs.microsoft.com/en-us/dynamics365/marketing/custom-template-attributes#add-new-fonts-to-the-text-element-toolbar. This works fine, but it is not showing up in the list when styling a font. 

Is there any way to do that?

Best regards, 

Eline

I have the same question (0)
  • Nya Profile Picture
    29,060 on at

    Hi Eline,

    It is recommended to specify the source of your fonts.

    For example, here is an issue that the fonts are from Google Fonts.

    (+) Custom Google Fonts in Dynamics 365 Marketing - Dynamics 365 Marketing Forum Community Forum

    You can refer to my answer to in to adjust your HTML.

  • ElineB Profile Picture
    278 on at

    Hi Nya,

    Yes that is working fine in the text element toolbar, but not in the design bar for buttons.

  • Suggested answer
    Nya Profile Picture
    29,060 on at

    Hi Eline,

    So please tell me the source of the fonts.

    Or can you share the code to me?

  • ElineB Profile Picture
    278 on at

    <!-- -- Custom Open Sans font ----->

    <link rel="preconnect" href="fonts.googleapis.com">

    <link rel="preconnect" href="fonts.gstatic.com" crossorigin="">

    <link href="fonts.googleapis.com/css2 rel="stylesheet">

    <meta type="xrm/designer/setting" name="additional-fonts" datatype="font" value="Open Sans">

       <meta name="referrer" content="never">

       <meta type="xrm/designer/setting" name="type" value="marketing-designer-content-editor-document">

       <meta type="xrm/designer/setting" name="layout-editable" value="marketing-designer-layout-editable">

       <meta type="xrm/designer/setting" name="layout-max-width" value="600px" datatype="text" label="Layout max width">

       <meta type="xrm/designer/setting" name="font-family" value="Open Sans, Tahoma" datatype="font" label="Font Family">

  • Suggested answer
    Nya Profile Picture
    29,060 on at

    Hi,

    Please kindly refer to my answer in the link.

    (+) Custom Google Fonts in Dynamics 365 Marketing - Dynamics 365 Marketing Forum Community Forum

    it contains how to get the code which should be copied into the <head> of your html.

    pastedimage1636360879658v1.png

    The code should be something like the following code snippet.

    <meta type="xrm/designer/setting" name="additional-fonts" datatype="font" value="Open Sans">
    <link rel="preconnect" href="">https://fonts.googleapis.com">
    <link rel="preconnect" href="">https://fonts.gstatic.com" crossorigin="">
    <link href="">fonts.googleapis.com/css2 rel="stylesheet">
     
    Then it will be shown in the list of fonts.
    pastedimage1636361139020v1.png
  • ElineB Profile Picture
    278 on at

    Yes, that is showing up, but not here in the bar on the right side when creating a button.  That is exactly my issue. The text element toolbar is working fine.

  • Verified answer
    Nya Profile Picture
    29,060 on at

    Hi Eline,

    Sorry for the misunderstanding.

    There is no way to show the additional fonts for the button.

    Please customize the HTML to achieve that.

    The code is something like:

    pastedimage1636363578795v1.png

    input[type="button"] {
                font-family: 'Open Sans', sans-serif;
    }
     
    pastedimage1636363626532v2.png
    <div type="button" data-editorblocktype="Button" align="center" style="margin: 0px;" class="buttonWrapper"><a class="buttonClass" href="#Button" style="text-align: center; margin-right: auto; margin-left: auto; display: inline-block; background-color: rgb(34, 102, 227); border-radius: 4px; color: rgb(255, 255, 255); width: fit-content; height: auto; padding: 10px 20px; max-width: 100%; line-height: normal; border-color: rgb(255, 255, 255); border-width: 1px; border-style: none; font-size: 24px;mso-hide: none !important;" data-msdyn-tracking-id="b1844245310431636361525706" data-msdyn-tracking="true"><span style="font-family: Verdana, Arial, sans-serif;">Almost before we knew it, we had left the ground</span></a></div>
     
     
    Or you could raise a support ticket for further help.
  • ElineB Profile Picture
    278 on at

    No problem, thanks for your help. It's a pity that that is not already possible.

  • Earl Watson Profile Picture
    5 on at

    Same.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 81 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 49 Most Valuable Professional

#3
#ManoVerse Profile Picture

#ManoVerse 40

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans