Hi, @veritycantare
You can utilize the “Fonto Custom Web Fonts Manager” plugin to solve your problem. This plugin offers both “web font services and self-hosted services”, making it a great choice for any web font needs. With “Fonto”, you can easily manage and customize your web fonts, ensuring your website looks professional and polished.
OR
To self-host custom fonts for the block editor’s typography options in a child theme of Twenty Twenty-Three, you will need to take the following steps:
1. Download the font files and upload them to your WordPress site’s hosting.
2. Create a new stylesheet in your child theme’s directory (e.g., style-fonts.css
) and enqueue it in your child theme’s functions.php
file.
3. In the new stylesheet, add the following code to import the font files:
@font-face {
font-family: "Custom Font";
src: url("font-file.woff2") format("woff2"),
url("font-file.woff") format("woff");
font-weight: 400;
font-style: normal;
}
4. In the block editor, go to Settings (cog icon) > Writing and make sure the Use Block Editor option is enabled.
5. Create a new post and select a block.
6. In the block editor, go to the Block tab and select the Typography option.
7. In the font drop-down, select the custom font you imported.
8. Save your changes and preview the post to see the custom font in action.
Note: You may need to adjust the font family, src, and format values in the @font-face declaration to match your specific font files.
Thank you.