Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Font loading #112

Open
meerzulee opened this issue Jun 16, 2020 · 4 comments
Open

Font loading #112

meerzulee opened this issue Jun 16, 2020 · 4 comments

Comments

@meerzulee
Copy link

I am using tailwindcss. When I change default font to custom one, the wordpress doesn't load it

@EvanAgee
Copy link
Owner

@meerzulee are you also enqueing the custom font?

@meerzulee
Copy link
Author

Yes, I tried couple rules for webpack, but no results. I solved problem using font CDN.

@sotoyjuan
Copy link

@EvanAgee you mean enqueing via wordpress theme?

@harrisonfm
Copy link

I was able to add .woff fonts without enqueueing. Webpack loads these files (confirm in loaders/fonts.js) and you can do standard @font-face in .css to include them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants