If you'd like to use custom font(s) on payment widgets and/or in your customer portal you can import web fonts by adding a few lines of CSS in your settings.

Tutorial: How to override widget paragraph text with a google web font.

1. Locate a web font that is hosted on the web. In this example we will use a google web font from the google font library (https://fonts.google.com). For this example, the google web font called "Indie Flower" can be found here.


Click "SELECT THIS FONT" to see the specific installation instructions for the font:


2. In the font selection popup window select the @IMPORT embed option.


3. Copy the @import css rule WITHOUT the style tags:

@import url('https://fonts.googleapis.com/css?family=Indie+Flower');


4. Paste the font import css rule into WIDGET(S) and/or in your CUSTOMER PORTAL CSS so it can be used wherever you need to override the default font(s).

WIDGETS > ADVANCED SETTINGS:

CUSTOMER PORTAL DESIGN PAGE:
https://app.paywhirl.com/customer-portal-design


5.  Once you have saved your css and imported the rule for your custom font you will be able to override any of the default text styling in widgets or your customer portal. 

For example, if you wanted to change all the paragraph text in PayWhirl to use your custom font you would add a couple of lines of css like this below your import rule:

p {
     font-family: 'Indie Flower', cursive;
}

OR... If you wanted to override ALL text in PayWhirl with another font you could use a rule like this:

* {
     font-family: 'Indie Flower', cursive;
}

Related Articles:

Customizing your checkout & customer portal design

How to override widget layouts with custom CSS

PayWhirl widgets & embed codes


Please let us know if you have any questions.

Team PayWhirl

Did this answer your question?