Change the font in wordpress.com via css

Asked

Viewed 889 times

0

I’m trying to change the font of a site hosted on Wordpress.com. In the archive css, I do the source on the first line of the code:

@import "//fonts.googleapis.com/css?family=Lekton";

Then I determine the source that will be used:

font-family: 'Lekton';

In the preview part of Wordpress I can see the font change. However when saving the change, it disappears. I also tried using @font-face and it didn’t work. Wordpress.com also doesn’t allow uploading files .eot, .woff and .svg.

  • Welcome to the community. You want to change the theme font of your site, so that changes are seen on pages, posts, etc?

  • That’s right. I wish to change the font type to Lekton.

2 answers

1

With little information you passed, I will ask you to make these changes and in the comments you inform me whether it worked or not.

Altere of:

@import "//fonts.googleapis.com/css?family=Lekton";

To:

@import 'https://fonts.googleapis.com/css?family=Lekton';

And when determining the source, change from:

font-family: 'Lekton';

To:

font-family: 'Lekton', sans-serif !important;
  • It didn’t work. It showed behavior similar to what was occurring.

  • @Raymond which link to your website and which class CSS or ID Are you trying to change? So I can help you better.

-1

  • The problem is that, from what I researched, Wordpress.com unlike Wordpress.org does not accept the use of plugins.

Browser other questions tagged

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