The font doesn’t change it only changes the Weight but not the family on the front end!

Asked

Viewed 56 times

0

The font does not change the family only the width on the front and shows no error in the console!

@import url("https://fonts.googleapis.com/css?family=Ubuntu");
.menu-vin li a{
    display:block;
    text-decoration: none;
    font-family: 'Ubuntu', sans-serif;
}
<ul class="list-inline menu-vin">
    <li class="list-inline-item"><a href="/">INICIO</a></li>
    <li class="list-inline-item"><a href="/quemsomos">QUEM SOMOS?</a></li>
    <li class="list-inline-item"><a href="/celulas">CÉLULAS</a></li>
    <li class="list-inline-item"><a href="/contato">CONTATO</a></li>
</ul>

@import url("https://fonts.googleapis.com/css?family=Ubuntu");
.menu-vin li a{
    display:block;
    text-decoration: none;
    font-family: 'Ubuntu', sans-serif;
}
  • It may be a problem with class hierarchy since you are using WP, Temta put font-family: 'Ubuntu', sans-serif !important; that must resolve

  • also did not give!

  • Try calling this source in a separate file. Create a new HTML from scratch and import Font-family to see if it goes, this eliminates some possibilities

  • in the stackoverflow editor it no longer worked

  • I could only make direct import of the link <link href="https://fonts.googleapis.com/css?family=Ubuntu" rel="stylesheet"> using @import didn’t work here either...

  • I’ve tried it so it didn’t work either!

Show 1 more comment
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.