Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
30 views

Load different custom fonts to different products

Is there a way to load different fonts for different products in Magento2.4 ? The fonts will be self hosted in /web/fonts, but I want them to load only to specific products. Could be done in a block ...
Nikos Klavdianos's user avatar
0 votes
1 answer
768 views

How to preload custom fonts in Magento 2.2

I have a custom font in my theme already added through the "web/css/source/_typography.less". & when (@media-common = true) { .lib-font-face( @family-name: @font-family-name__base, ...
megloff's user avatar
  • 101
0 votes
1 answer
2k views

Magento 2.3 custom font not loaded in email

We want to use the 'Open Sans' font of Google in our transactional email templates. But when we sent the email it does not load the custom font inside the email. We changed the file /app/code/design/...
JGeer's user avatar
  • 1,422
1 vote
1 answer
1k views

Ensure text remains visible during webfont load: Doesn't work on added fonts

In our Magento build we have a custom theme that uses Luma as a parent. After doing an Audit in Chrome we get the message Ensure text remains visible during webfont load and it lists the following. ...
Gezzasa's user avatar
  • 134
1 vote
1 answer
774 views

How to change font source url from local to CDN?

I have uploaded google fonts on the local server to a custom directory and it seems to work well so far except that the Ultimo theme I am using is picking the base URL to generate font URL path. ...
Zoya's user avatar
  • 481
1 vote
1 answer
7k views

Magento 2: How to view/implement Magento icons from 'icons-blank-theme' font-family

I am currently developing a custom theme using Magento 2.3. I am altering the sidebar menu, so that its top-level items are collapsible and an arrow appears beside them when clicked, the same as the ...
Muckee's user avatar
  • 699
0 votes
2 answers
598 views

How to change the font for a specific store view

I have two store-views which are English and Persian(RTL) and would like to change the font of the Persian store-view for all front-end contents. Magento ver 1.9.2.4
Reshad Zazai's user avatar
2 votes
2 answers
2k views

How to change h1 font size on homepage

I want to change the font size of my h1 tag on the homepage. I am using Chrome inspect and it tells me the css changes are actually inside the page itself, not css. So I look at source code: /* Theme ...
James Sonny's user avatar
0 votes
1 answer
616 views

Open Sans overwriting Lato ~ Magento 2.1

This question has not been answered anywhere else. There is another post like this but it's not the same issue. I have created a theme of my own, using Blank as the fallback. I have set Lato to be ...
Reverend2100's user avatar
1 vote
2 answers
252 views

Fonts getting smaller when _theme.less is created

I'm running 2.1.2 but since 2.0.1 I'm facing the same problem. I have a custom theme and when I created file "_theme.less" under my template's structure (web/css/source) all those icons based on ...
Luiz Junior's user avatar
2 votes
1 answer
3k views

Adding custom font to _typography.less parse error

I try to add some custom fonts to my theme, so I created file app/design/frontend/vendor/theme/web/_typography.less and added the code inside of it: .lib-font-face ( @family-name:'OpenSans ...
Anitr's user avatar
  • 448
3 votes
2 answers
6k views

Magento 2: How to add multiple locally stored fonts?

I want add one locally stored font in my custom theme folder. I followed the instructions here: http://devdocs.magento.com/guides/v2.0/frontend-dev-guide/css-topics/using-fonts.html But the ...
Luis Garcia's user avatar
  • 1,639