-
AuthorPosts
-
Saguaros Moderator
Saguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
July 19, 2017 at 2:23 am #1049676Hi,
You need to define the font in assets.xml file, pls check out this docs for more info: http://www.t3-framework.org/documentation/bs3-customization#add-fonts (check Google fonts part)
Regards
July 19, 2017 at 4:18 pm #1049854HI,
I have read this documentation and modified the assets.xml file2. Use assets.xml file… Use below format:
<Stylesheets> <File> fonts / novecentowide / stylesheet.css </ file> <File> http://fonts.googleapis.com/css?family=Roboto+Slab:400,100,300 </ file> </ Stylesheets>
I do not see the font in the list of choices (cf previous image)!?
What is the input field "custom font" !! doc?"Regards
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
July 20, 2017 at 3:33 am #1049977You can share the credentials of your site: Admin + FTP account so I will take a look.
July 20, 2017 at 7:12 am #1050023This reply has been marked as private.Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
July 21, 2017 at 7:35 am #1050358Hi,
As I can see that your site is loading Lato font now.
For the dropdown list of fonts in thememagic, it will show built-in fonts in template only, we already provide fields for you to add another / custom font there.
Regards
July 21, 2017 at 8:37 am #1050385HI,
Did you do something to use this font?
The syntax for the field is therefore:
‘font-family: Lato’, sans-serif
RegardsSaguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
July 23, 2017 at 1:52 pm #1050741Hi,
You mean in ThemeMagic field, I see it was already there.
Another way is that you can declare this as based font family via variables.less file so that your site will load this font.
Let me know if you need further helps.
Regards
July 24, 2017 at 12:33 pm #1051090Hi,
Sorry but I actually need to fully understand how it works using the field because I have not seen a doc on this field.
I must first reproduce the changes I made
1 / @import to custom.css file@import url('https://fonts.googleapis.com/css?family=Lato');
2 / make an addition in the /templates/ja_megastore/etc/assets.xml
3 / add of ThemeMagic field:‘font-family: Lato’, sans-serif
Regards
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
July 25, 2017 at 6:50 am #1051267Hi,
May I know which part you want to have this font or it’s default of whole website?
July 26, 2017 at 12:25 pm #1051747Hi,
- For this site, I want this to be the main font.
- For another site using your thememagic, I would like to understand how to use the ThemeMagic field
Can you clarify what you do not understand? If you can not answer
RegardsSaguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
July 31, 2017 at 4:34 pm #1052821Hi,
Changing via ThemeMagic will be the same as via LESS files, it seems that your site is not running with Development Mode (less files will be loaded on your site), you will need to compile less to css.
Pls try to backup all current css file first, then go to Extensions > Templates > the default template style > and compile less to css.
Regards
July 31, 2017 at 8:30 pm #1052838HI,
I did what you suggested (backup, compilation). Nothing changes 🙁
Why does not it work?I’m sorry, but I do not understand whether the 2 proposals are equivalent.
In this case, the easiest way is to make it run via themeagic (there would be no need to compile) and remove all font calls from the CSS !!Have you looked at my site? Can you look at the & FTP website to save us time if there was a big mistake
Thank you
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
August 1, 2017 at 7:46 am #1052941Hi,
I investigate further on your site and the problem comes from the module FavSocial installed on your site (3rd party extension), it loads its own bootstrap which override the font family on your site.
You can try to disable this module and see that it loads Lato font family well.
Regards
August 1, 2017 at 3:26 pm #1053061Hi,
Thank you it works.
So I remember that the easiest way to put a custom font is;
1 / @import to custom.css file@import url('https://fonts.googleapis.com/css?family=Lato');
2 / add of ThemeMagic field:
‘font-family: Lato’, sans-serif
No need to modify assets.xml
Regards -
AuthorPosts
This topic contains 14 replies, has 2 voices, and was last updated by hdcms 7 years, 3 months ago.
The topic ‘Lato font on all the site’ is closed to new replies.