Skip to content
This repository has been archived by the owner on Feb 17, 2025. It is now read-only.

Videomaker: locally-hosted font path is wrong #5661

Closed
onetrev opened this issue Mar 15, 2022 · 0 comments · Fixed by #5711
Closed

Videomaker: locally-hosted font path is wrong #5661

onetrev opened this issue Mar 15, 2022 · 0 comments · Fixed by #5711
Assignees
Labels
[Theme] Videomaker Automatically generated label for videomaker.

Comments

@onetrev
Copy link

onetrev commented Mar 15, 2022

Steps to replicate

Activate Videomarker (on a WP.org / self-hosted version of WordPress). Check Dev Tools. Failure to load font error will display. :)

Result

You should see this error:

"Downloadable font: download failed (font-family: "Inter" style:normal weight:100..900 stretch:100 src index:0): status=2147746065 source: https://devsite.xyz/assets/fonts/Inter-roman.var.woff2/"

Expected

Unless I'm missing something super obvious since I generally only have worked with hybrid / classic themes, the path to the font should not be absolute. As a result the path is missing the necessary /wp-content/themes/videomarker bit when loading on the front end.

To get it to work for me I have to hack the CSS file as such, changing the path and removing the slash at the end that was recently added as well.

src: url("./fonts/Inter-roman.var.woff2") format("woff2");

@MaggieCabrera MaggieCabrera added the [Theme] Videomaker Automatically generated label for videomaker. label Mar 15, 2022
@matiasbenedetto matiasbenedetto self-assigned this Mar 18, 2022
@matiasbenedetto matiasbenedetto linked a pull request Mar 18, 2022 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
[Theme] Videomaker Automatically generated label for videomaker.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants