font on mobile version

Posted in: Newspaper
Post count: 20

Hello,

How can I customize general body font for mobile version of my site?

Thanks,
— Pawel

Post count: 22421

Hello,

Unfortunately for the mobile theme does not have any font options at the moment. They can be changed with css though. Unfortunately there is no particular font to change on all the mobile theme at once. Our theme does not have a global font option. Individual elements must be changed.

Thank you!

Post count: 20

Thanks for feedback! Sorry to hear it.

Do you have example of css update on how to change font at least for body content and title in posts?

Thanks,
— Pawel

Post count: 22421

Hello,

It depends on the font you want to use. If you already use the font on desktop then the font will be loaded on mobile. If the font is not used anywhere else, then you have to load it with css
To load a font with css you will have to use this code:
@font-face {
font-family: 'add your font family here';
src: url('add the source url for the font. insert the path that leads to the font') format("opentype");
font-weight: normal;
font-style: normal;
}

After the font is loaded it can be used like so:

@media(max-width:767px){
.td-post-content p, .td-post-content {
font-family: verdana!important;
}}

Thank you!

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.