Z
Z
Zakonoposlushniy2016-02-04 17:31:29
Fonts
Zakonoposlushniy, 2016-02-04 17:31:29

How to change the font in the header of a WordPress site?

Hello. Now I'm going to ask a possibly stupid question, but I'm not an expert, so don't judge too harshly.
I downloaded the theme "Asteria" light version for Wordpress, and it became necessary to change the font of the site title. In the settings of the theme itself, it is possible to select a font from a ready-made list (as I understand it, fonts are loaded from Google webfonts), but the font I need is not there. I uploaded the desired font to the hosting and tried to connect it via Css, but it didn't work out. Rather, the font was connected, I added it to arbitrary text and the font changed, but the font in the title does not change. What to do in this case?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Otradny, 2016-02-04
@Zakonoposlushniy

<div class="logo">
    <h1>Site title</h1>
</div>

.logo h1 {
    font-family: "My custom font", arial, sans-serif !important;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question