Docs

Hosted Pages Articles & FAQ

google font, settings, themes, ChargeBee, v3, V2, checkout

461783

2017-05-17T15:42:09Z

2024-08-30T10:38:39Z

2597

1

3

227166

How to import a Google font which has two words in the name?

How to import a Google font which has two words in the name? 

A font can usually be added upon configuring themes under Settings (On the left-side panel) » Configure Chargebee » Checkout & Self-Serve Portal » Hosted Pages Settings. You can add the preferred font under the Typography section. However, the same process cannot be followed to add a font whose name has two words. You will have to download and edit the theme file to include the font name and then import it back into Chargebee.

Example: Libre Franklin, Josefin Sans, Open Sans and so on.

Steps to be followed (Open Sans taken as an example here):

  1. Download the theme at Settings (On the left-side panel) » Configure Chargebee » Checkout & Self-Serve Portal » Hosted Pages Settings » Themes » Download (Your preferred theme under Published/Installed).

  2. Unzip and edit “theme.css” file under Assets » CSS. Look for google fonts import and replace the @import url with the below:

CODE:

@import url(https://fonts.googleapis.com/css?family=Open+Sans);

If you would like to have the option to use both Open Sans and Chargebee's default fonts, you can use the below code:

@import url(//fonts.googleapis.com/css?family=Open+Sans|{{{typography.google_font}}});

  1. Once the changes are saved, you can upload the theme file back into Chargebee from Settings (On the left-side panel) » Configure Chargebee » Checkout & Self-Serve Portal » Hosted Pages Settings » Themes » Upload.

Note: With the V3 checkout pages, the theme settings are not supported as the checkout happens in the form of a pop-up on the same webpage.

Related Articles 

“Subscription[Start_Date] should not be passed for cancelled subscription” error while importing subscriptions via Bulk operation.
How to customise the Consent management settings in Chargebee’s hosted page
Error: Session Expired
Chargebee's site name was renamed but why does this still show a different name?
[API Users] How to generate hosted page URL and embed via iFrame
How to edit the fields that appear on the hosted customer portal? Will it appear only in English?
Can I group plans and display them in the customer portal?
How to set a landing page URL for the logo added to the theme?
Why is the checkout page not loading?
How to collect the coupon codes during signup on the V2 checkout pages?
Checkout V3 - FAQ
How can I collect the coupon codes on the V3 checkout pages during signup?
Content security policy for the Checkout page
How do I control the Quantity increments on the Checkout page?
Redirect URL not working
Checkout page returns with exclamation marks when my customer tries to add his card details. What should I do?
Is it possible to change the order in which the payment methods are displayed in checkout?
“Wrong format” error while passing email id in checkout
How to make the billing address mandatory in the self-serve portal when my customer reactivates his subscription?
Google Analytics: track_info_error on Checkout V3
Can I let my customers set the Auto collection status at the self-serve portal?
How to hide the discount prompt from displaying?
How can my customers set a password for their self serve portal?
How to add shipping address?
Allow customers to add addons on Self serve portal
How to navigate to the specific step in the Portal popup using JS/PHP?
Where do I add my domain for the allow-list?
Was this article helpful?
Loading…