Change the font in wordpress.com through css

0

I'm trying to change the font of a website hosted on WordPress.com. In the file css , I make the source in the first line of the code:

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

Then, I determine the font that will be used:

font-family: 'Lekton';

In the preview part of Wordpress I can see the font change. But in saving the change, it disappears. I also tried using @font-face and it did not work. WordPress.com also does not allow uploading of files .eot , .woff and .svg .

    
asked by anonymous 07.10.2016 / 17:26

2 answers

1

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

Change from:

@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;
    
07.10.2016 / 18:03
-1

You do not need to change your font via CSS.

One possible solution is to use a plugin.

You can try this:

link

    
07.10.2016 / 17:39