Discover how to add custom fonts in WeWeb with this easy guide. Make your site pop by seamlessly incorporating unique typefaces.
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.
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.
If you're using an online font library like Google Fonts or Adobe Fonts:
If you're using a local font file:
Open up your WeWeb project where you want to use this custom font.
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.
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”.
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.
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;
}
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.
If the custom font does not appear as expected, check the following:
Explore our WeWeb tutorials directory - an essential resource for learning how to create, deploy and manage robust server-side applications with ease and efficiency.
Nocode tools allow us to develop and deploy your new application 40-60% faster than regular app development methods.
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.
With the Bootstrapped platform, managing projects and developers has never been easier.
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.
Fast Development: Bootstrapped specializes in helping startup founders build web and mobile apps quickly, ensuring a fast go-to-market strategy.
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.
Expert Team: With a team of experienced developers and designers, Bootstrapped ensures high-quality, reliable, and scalable app solutions.
Affordable Pricing: Ideal for startups, Bootstrapped offers cost-effective development services without compromising on quality.
Supportive Partnership: Beyond development, Bootstrapped provides ongoing support and consultation, fostering long-term success for your startup.
Agile Methodology: Utilizing agile development practices, Bootstrapped ensures flexibility, iterative progress, and swift adaptation to changes, enhancing project success.