WeWeb

How to use custom fonts in WeWeb?

Discover how to add custom fonts in WeWeb with this easy guide. Make your site pop by seamlessly incorporating unique typefaces.

Developer profile skeleton
a developer thinking

Overview

Custom fonts can really jazz up the look of your WeWeb projects, making them match your brand identity or design style better. This guide shows step-by-step how to get custom fonts into WeWeb, from picking the perfect one to making sure it fits well in the platform. It covers finding fonts from different sources, uploading them to WeWeb, and using them on various parts of your site. Whether you love design or you're a web developer, knowing how to work with custom fonts can hugely improve your website's user experience.

Get a Free No-Code Consultation
Meet with Will, CEO at Bootstrapped to get a Free No-Code Consultation
Book a Call
Will Hawkins
CEO at Bootstrapped

How to use custom fonts in WeWeb?

Step 1: Select Your Custom Font

First things first, pick out the custom font you want to use. You can choose from Google Fonts, Adobe Fonts, or even a font file you have on your computer, like .ttf or .otf.

Step 2: Obtain the Font URL

If you're using an online font library like Google Fonts or Adobe Fonts:

  • Head over to the font library.
  • Find the font you like.
  • Copy the URL they give you for embedding the font in a web page.

If you're using a local font file:

  • Make sure the font file is uploaded to a server where it can be accessed.
  • Get the URL where the font file is hosted.

Step 3: Access WeWeb Project

Open up your WeWeb project where you want to use this custom font.

Step 4: Navigate to Global Styles

In the WeWeb interface, find and click on the “Global Styles” option from the left-hand menu. This is where you can manage the styling for your entire project.

Step 5: Add Custom CSS Code

Within the Global Styles section, look for the option to add custom CSS. Usually, this is under a section labeled as “Custom Code” or “CSS”.

Step 6: Embed the Font Using CSS

Paste the @font-face declaration for your custom font. This includes specifying the font-family name, the source URL, and any other relevant details. Here’s an example:

@font-face {
  font-family: 'CustomFont';
  src: url('https://example.com/path-to-your-font-file.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

Replace CustomFont with the name you want to give your font. Replace the URL with the URL of your font file.

Step 7: Apply the Custom Font

After adding the custom CSS, you need to apply the font. You can do this by setting the font-family property in the CSS for specific elements, or for the entire project. For example:

body {
  font-family: 'CustomFont', sans-serif;
}

This will apply the custom font to the entire body of your project. You can also target specific elements:

h1, h2, h3, h4, h5, h6 {
  font-family: 'CustomFont', sans-serif;
}

Step 8: Save and Publish

After applying your custom font settings, be sure to save your changes and publish your project. Review your website to ensure that the custom font is being displayed correctly.

Step 9: Troubleshoot If Necessary

If the custom font does not appear as expected, check the following:

  • Ensure the URL of the font file is correct and accessible.
  • Validate your CSS for any syntax errors.
  • Verify that the font file is properly uploaded and not restricted by permissions.

Explore more WeWeb tutorials

Complete Guide to WeWeb: Tutorials, Tips, and Best Practices

Explore our WeWeb tutorials directory - an essential resource for learning how to create, deploy and manage robust server-side applications with ease and efficiency.

Why are companies choosing Bootstrapped?

40-60%

Faster with no-code

Nocode tools allow us to develop and deploy your new application 40-60% faster than regular app development methods.

90 days

From idea to MVP

Save time, money, and energy with an optimized hiring process. Access a pool of experts who are sourced, vetted, and matched to meet your precise requirements.

1 283 apps

built by our developers

With the Bootstrapped platform, managing projects and developers has never been easier.

hero graphic

Our capabilities

Bootstrapped offers a comprehensive suite of capabilities tailored for startups. Our expertise spans web and mobile app development, utilizing the latest technologies to ensure high performance and scalability. The team excels in creating intuitive user interfaces and seamless user experiences. We employ agile methodologies for flexible and efficient project management, ensuring timely delivery and adaptability to changing requirements. Additionally, Bootstrapped provides continuous support and maintenance, helping startups grow and evolve their digital products. Our services are designed to be affordable and high-quality, making them an ideal partner for new ventures.

Engineered for you

1

Fast Development: Bootstrapped specializes in helping startup founders build web and mobile apps quickly, ensuring a fast go-to-market strategy.

2

Tailored Solutions: The company offers customized app development, adapting to specific business needs and goals, which ensures your app stands out in the competitive market.

3

Expert Team: With a team of experienced developers and designers, Bootstrapped ensures high-quality, reliable, and scalable app solutions.

4

Affordable Pricing: Ideal for startups, Bootstrapped offers cost-effective development services without compromising on quality.

5

Supportive Partnership: Beyond development, Bootstrapped provides ongoing support and consultation, fostering long-term success for your startup.

6

Agile Methodology: Utilizing agile development practices, Bootstrapped ensures flexibility, iterative progress, and swift adaptation to changes, enhancing project success.

Yes, if you can dream it, we can build it.