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

Demo site not properly showing custom fonts, URL in stylesheet still showing 'localhost' instead of demo site URL. #853

Open
VinnySem1972 opened this issue Jan 28, 2025 · 2 comments

Comments

@VinnySem1972
Copy link

VinnySem1972 commented Jan 28, 2025

Quick summary

I am using a custom font from Google Fonts that I installed in Twenty Twenty-Four theme editor. The font shows properly in local Studio. When I create a demo site, the custom font is not used. Checking the page source, the stylesheet shows 'localhost:8881' as the domain and not the demo site URL. Upon further searching of the page source, I find a number of instances of uploaded media where 'localhost' in the page source and not the demo site URL.

  | @font-face{font-family:Abel;font-style:normal;font-weight:400;font-display:fallback;src:url('http://localhost:8881/wp-content/uploads/fonts/MwQ5bhbm2POE6V1LPJp6qGI.woff2') format('woff2');}

Steps to reproduce

  1. In Studio, select a site with custom font installed and used.
  2. On Share tab, select create/update demo site.
  3. View shared site.

What you expected to happen

Expected that custom font would be uploaded and used in page text display.

What actually happened

Default font is shown, shared site URL not updated for styling.

Impact

All

Available workarounds?

No but the app is still usable

Platform

No response

Logs or notes

No response

@ChrisBegley
Copy link

ChrisBegley commented Feb 6, 2025

Thanks for reporting this, I've noticed the same issue. As a workaround, I've added the embed code from Google Fonts so the fonts at least load from Google's servers on the demo site URL.

@Robertght
Copy link

I can confirm this is happening with Studio 1.3.3.

localhost demo
Image Image

Site: https://unabashedly-sympathetic.wp.build/

@Robertght Robertght added Triaged and removed Needs triage Ticket needs to be triaged labels Feb 6, 2025
@Robertght Robertght moved this from Needs Triage to Triaged in Automattic Prioritization: The One Board ™ Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

4 participants