WebSite X5Help Center

 
Esahc ..
Esahc ..
Moderator

Google Font for Blog  en

Auteur : Esahc ..
Visité 2910, Followers 1, Partagé 0  

I use Roboto throughout my site.

I added the appropriate code to preferences in the opening window of Website X5

I found that I needed to add <link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'> into the expert properties of each page, otherwise the fonts did not display for those pages on other PCs

How and where do I add code so that Blog comments are also displayed in Roboto

http://www.esahc.com

Posté le
6 RéPONSES - 1 CORRECT
Incomedia
Riccardo P.
Incomedia

Hello Esach,

i can't help you for personal code, please wait more information about this by other user of the community.

Thank you.

Lire plus
Posté le de Riccardo P.
Esahc ..
Esahc ..
Moderator
Auteur

I do not understand how this could be termed personal code.

I read the help, followed all the steps to the best of my ability, inserted all code where advised, but the text in the blog is not the correct font.

This blog is part of Website X5 - why doesn't it simply pick up the font from the defaults set in the program?

Lire plus
Posté le de Esahc ..
Incomedia
Riccardo P.
Incomedia

Hello Esahc,

go in step 1 in "template style", "text Style" an set the font in "page title" and "page text".

Then go in step 4 in blog and in the tap "layout" select the Side Block and modify the font of the blocks.

Click on the CTRL+Preview and export all site on the internet.

Let me know.

Lire plus
Posté le de Riccardo P.
Esahc ..
Esahc ..
Moderator
Auteur

Riccardo

Sadly this does not fix it.  It does of course look fine on my PC which has Roboto installed. I have attached an image of 2 different blogs.  The first is all roboto but everything is displayed in the web default Times (other than "some" of the side blocks).

The second has the blog set in arial.  The body of the blog is correctly shown as arial because this font is on the PC, but the headings and recent posts remain in Times as I suspect they are picking up the default Roboto font from step 1, template, text style.

I had to add google fonts code to the header of every page of my website to make the fonts work, there appears to be nowhere I can do this for the blog.

Lire plus
Posté le de Esahc ..
Incomedia
Riccardo P.
Incomedia

Hello Esahc,

i need to test directly your project file .iwzip, please export the project with the option in step 5 "export the project".

Then upload the file on your server or use this service:

https://www.wetransfer.com/

Let me know.

Lire plus
Posté le de Riccardo P.
Esahc ..
Esahc ..
Moderator
Auteur

Thankyou Riccardo

Because you requested my website (too large), I created a dummy site with one page and one blog entry.

In the process I found that I could go to step 2 Map Creation, highlight my blog, click on properties, expert tab, and insert <link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'> into the header.

Whilst I had done this for every other page on the site (is there an easier way?) I did not realise I could do this for the blog until confronted with the much simpler structure of the temporary site.

My apologies for inconveniencing you all.

Lire plus
Posté le de Esahc ..