C
C
ComahonQQComahon2020-02-12 09:43:42
xampp
ComahonQQComahon, 2020-02-12 09:43:42

Why don't Google fonts work in Wordpress on local Xampp server?

I connected the fonts in wordpress in the standard underscores template, using Xampp as a local server.
Fonts connected but not working

<link rel='stylesheet' id='wp-block-library-css'  href='http://localhost/broadway1/wp-includes/css/dist/block-library/style.min.css?ver=5.3.2' type='text/css' media='all' />
<link rel='stylesheet' id='humescores-fonts-css'  href='https://fonts.googleapis.com/css?family=PT+Serif%3A400%2C400i%2C700%2C700i%7CSource+Sans+Pro%3A400%2C400i%2C600%2C900&#038;display=swap&#038;ver=5.3.2' type='text/css' media='all' />
<link rel='stylesheet' id='humescores-style-css'  href='http://localhost/broadway1/wp-content/themes/humescores/style.css?ver=5.3.2' type='text/css' media='all' />
<link rel='https://api.w.org/' href='http://localhost/broadway1/wp-json/' />
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://localhost/broadway1/xmlrpc.php?rsd" />
<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://localhost/broadway1/wp-includes/wlwmanifest.xml" /> 
<meta name="generator" content="WordPress 5.3.2" />
<style type="text/css">.recentcomments a{display:inline !important;padding:0 !important;margin:0 !important;}</style></head>

<body class="home blog hfeed">
<div id="page" class="site">
  <a class="skip-link screen-reader-text" href="#content">Skip to content</a>


The problem is probably that the link is not to a local font file.
Who faced such problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alex, 2020-02-12
@Kozack

Open the browser debugger and see if the file downloads.

T
tuxfighter, 2020-02-12
@tuxfighter

using xampp

stop raping this corpse already!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question