Problem with Font on Post Page

Posted in: Newspaper
Post count: 238

I updated to latest version and changed my post content font to Alegreya Sans from theme panel >> Theme fonts >> Post Content but it is still showing the default font.

Post count: 23312

Hello hadharm,

It seems to be a caching problem. If your caching plugin is too strange it may occur this. Try to clear all your caches, purge CDN files and check the results. First of all, please ensure that you have added your code to the correct section and also, make sure if the style has been successfully added to your panel.

Hope this helps and let us know how it goes!

Thanks for the message!

Post count: 238

I have cleared the caching and I am not using CDN but it is still showing default font. See demo here https://goo.gl/CzxXcC

Post count: 238

If this is unresolved yet kindly help me with changing the font making use of CSS

Post count: 22421

The problem you are facing is probably because your post content is empty. You content is grabbed from another source maybe through a script? only you can know that, but there is no standard post content: http://screencast.com/t/R5SlUmjIZ1C In this case the font is defaulted to the standard body->p font which is verdana. Try to change the body general font: http://screencast.com/t/ykJSkXBkVb
Thank you!

Post count: 238

The body general worked. i tried to restore my backup 7.4 and everything is normal. That implies that the update is causing the problem

Post count: 22421

Well we have no reports of this. None of our users complained about changing fonts when updating the theme and we have not observed anything of the sort. There were a few changes in 7.5 and this could affect your site in particular but it does not mean it affects everyone. As I said above, your posts are not standard posts. Even 7.4 should not handle the font from the post fonts, but from the main body fonts because your post content container is empty.
Thank you!

Post count: 238

I am trying to put the below code in mobile custom css but the font is not changing. Pls test this from your end.
.td-post-content {
font-family: "Alegreya Sans";
line-height: 30px;
font-size: 16px;
font-style: normal;
}

Post count: 22421

Hello,

A font change cannot be done with css without loading the font first. When you switch fonts in the theme panel, the theme also loads the font so it can be used. With this css you do not load fonts, but only specify which one to be used. If you want to use the font with css you will have to download the Alegreya Sans sans font as place it on your server and 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;
}

Thank you!

Post count: 238

Okay THanks

Viewing 10 posts - 1 through 10 (of 10 total)
You must be logged in to reply to this topic.