Home / Forums / WoodMart support forum / Can’t add custom fonts woff and woff2
Home › Forums › WoodMart support forum › Can’t add custom fonts woff and woff2
Can’t add custom fonts woff and woff2
- This topic has 15 replies, 2 voices, and was last updated 2 hours, 38 minutes ago by
Ves.
-
AuthorPosts
-
December 6, 2025 at 4:29 pm #699653
VesParticipantThe line in wp-config doesn’t do anything – define( ‘ALLOW_UNFILTERED_UPLOADS’, true );
The snippet also doesn’t change anything:
function allow_woff_woff2_uploads( $mimes ) {
if ( ! is_array( $mimes ) ) {
$mimes = [];
}
$mimes[‘woff’] = ‘font/woff’;
$mimes[‘woff2’] = ‘font/woff2’;
return $mimes;
}
add_filter( ‘upload_mimes’, ‘allow_woff_woff2_uploads’, 10, 1 );– the fonts aren’t visible in the Woodmart theme. As I understand it, loading is blocked at the hosting settings level… But the hosting company replied that they don’t block custom mime types, so I should check the cache, but caching isn’t enabled at the site level yet.
I tried adding this solution – https://www.altmann.de/en/blog-en/code-snippet-custom-fonts/ – upload custom fonts via FTP in upload/fonts folder and setting up the @font-face rules in Woodmart Custom CSS page – it still doesn’t work. Woodmart doesn’t see the custom font, and that’s it…
I also have a request for this topic in the future – to add support for EOT, SVG, OTF font format, because different browsers, especially older ones, need support for these formats. For example, the Bricks Builder theme and Oxygen Builder support this…
December 8, 2025 at 4:06 pm #699891
VesParticipantAccess
December 8, 2025 at 4:19 pm #699901
Artem TemosKeymasterHi Ves,
Let’s set up the font via the built‑in Custom Fonts feature so it appears in the Typography dropdowns.
Please follow this tutorial step by step:
https://xtemos.com/docs-topic/how-to-upload-custom-fonts/Key points:
– Prepare WOFF and WOFF2 files for each weight/style you need (you can convert TTF/OTF to WOFF/WOFF2 if needed).
– Upload the files to Media Library.
– Go to Dashboard -> Theme Settings -> Typography -> Custom fonts -> Add new.
– Use a unique Font | Name (do not reuse Google font names).
– For each weight/style, select the corresponding WOFF and WOFF2 from the Media Library.
– Save settings, then reload the Theme Settings page. After that the font will be available in Theme Settings -> Typography groups for assignment.Notes:
– Fonts added only via @font-face in Custom CSS won’t appear in the Typography dropdowns. They must be added through Theme Settings -> Typography -> Custom fonts.
– After saving, refresh the page to populate the font list.If this still doesn’t work:
– Keep all plugins turned off.
– Please send:
– Screenshots of your Custom fonts setup (Theme Settings -> Typography -> Custom fonts).
– A screenshot showing the font files in Media Library (with the file details panel visible).Kind Regards
December 9, 2025 at 12:04 pm #700052December 9, 2025 at 12:09 pm #700056December 9, 2025 at 12:45 pm #700066
Artem TemosKeymasterPlease send us your FTP access so we can check if you have correctly added the constant to
wp-config.phpfile, which allows these files.Kind Regards
December 9, 2025 at 1:11 pm #700077
VesParticipantAdded. Maybe MIMe blocks by Imunify360 on hosting… Needed to ask hosting support…
December 9, 2025 at 1:24 pm #700078
Artem TemosKeymasterWe don’t see the
ALLOW_UNFILTERED_UPLOADSconstant added to thewp-config.phpfile. Please add it and test how it works.December 9, 2025 at 2:16 pm #700106December 9, 2025 at 3:01 pm #700118
Artem TemosKeymasterIt implies that we’re examining different files. The folder structure via FTP is distinct, so either I or you are checking the wrong file.
December 9, 2025 at 3:06 pm #700120
VesParticipantPlease, attach a screenshot of your structure.
December 9, 2025 at 3:09 pm #700121
VesParticipantPath
December 9, 2025 at 3:59 pm #700141
Artem TemosKeymasterHere is a screenshot https://gyazo.com/d26caca892d009f2b08f149c1eea1f26
December 9, 2025 at 4:45 pm #700154
VesParticipantSorry, wrong path.. I’m attached screen of full path
Attachments:
You must be logged in to view attached files.December 9, 2025 at 5:32 pm #700162
Artem TemosKeymasterThank you. But even that
wp-config.phpfile doesn’t contain this constant’s code.December 10, 2025 at 10:16 am #700240
VesParticipantPlease, attach the screenshot of your structure.
-
AuthorPosts
Tagged: custom fonts, woff, woff2
- You must be logged in to create new topics. Login / Register