0
In my CSS I put the font Poiret One in the menu of my site. But when I open it on the mobile phone, the font is totally different.
My CSS is like this:
.menu a{
font-family: 'Poiret One', cursive;
}
And I import the source that way:
<link href="https://fonts.googleapis.com/css?family=Poiret+One" rel="stylesheet">
Does anyone know how I do so that in the mobile it correctly loads the source?
@Edit I’ll put in more code to help
<head>
<title>Avance Sistemas e Consultoria</title>
<link rel="shortcut icon" href="view/img/favicon.ico" type="image/x-icon">
<link rel="icon" href="view/img/favicon.ico" type="image/x-icon">
<link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Poiret+One" rel="stylesheet">
<script type="text/javascript" src="view/js/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="view/js/bootstrap.js"></script>
<link rel="stylesheet" href="view/css/bootstrap.min.css">
<link rel="stylesheet" href="view/css/styleGlobal.css">
<link rel="stylesheet" href="view/css/styleCellphone.css">
<link rel="stylesheet" href="view/css/fontawesome-all.css">
<link rel="stylesheet" href="view/css/animate.css">
</head>
-
@media(max-width: 1080px) {
.menu a{
font-family: 'Poiret One', cursive;
font-size: 35px;
}
The responsive css is selecting a different font than yours. You need to find it. Link to page if you have
– Sveen
Unfortunately, I can only run locally, but I’ll check the source code to see if it calls another source other than the ones I want
– Otavio Souza Rocha
Looking in my CSS files, the only source I find is this same Poiret One
– Otavio Souza Rocha
Include the font link before your file
css
. If possible check the network requests on your device. Already in last resource use the attribute!important
.– lazyFox
Guy put the entire code of your page in the question even with the head only so it is possible to give you a more accurate answer...
– hugocsl
added the head there, if I put everything will be huge.
– Otavio Souza Rocha
Cara tries this, goes in Chrome Devtools, put as responsive, inspects the element that is with the wrong source. Ai in the right part of Devtools goes in the "Computed" tab it is on the side of the Style tab where you have the css. In this tab Computed looks for the font-family, click on the little arrow there and it will expand which source the element is using and where this font is coming from.
– hugocsl
So, but in Chrome, even in the mode that simulates the mobile it gets the right source, only changes the source even when I open by mobile browser(which is Chrome too) cell phone
– Otavio Souza Rocha