We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Re: Font not working on mobile preview, nor text alignment

Solved

Font not working on mobile preview, nor text alignment

levon
Tourist
13 0 1

Hi here is a preview of my site, it looks fine so far on chome (except for the '{' at the top of the page)

However, my font wont appear on mobile and the text isn't aligned and cantered on the middle of the iframe as shown on desktop.

 

Here is a preview link, which seems fine in Chrome https://j4theqdjs4v4xbsf-74866557205.shopifypreview.com 

Accepted Solution (1)
ThomKnepper
Shopify Partner
196 30 71

This is an accepted solution.

Hi Levon,

 

I found the issue, you have set your height of your video wrapper with a padding %. After a quick look on your website I noticed that you're making quite a lot of fundamental mistakes. I would recommend you to check out this website and learn about the basics of the CSS box model.

 

https://web.dev/learn/css/box-model/

 

Setting a height of a element with the padding property is simply the worst thing you can do if you want to properly build your website.

 

I hope this helps.

Best wishes,
Thom Knepper - Athom.Agency
- Was my reply helpful? Please Like to let me know!
- Was your question answered? Awesome! Please Mark it as an Accepted Solution

View solution in original post

Replies 5 (5)

ThomKnepper
Shopify Partner
196 30 71

Hi there,

 

Can you please tell which exact fonts you're talking about? It looks like you have a couple of liquid errors on your website including some liquid that is responsible for loading the CSS for your fonts. 

 

If you can provide a little more info I'll probably be able to help you a little more.

Best wishes,
Thom Knepper - Athom.Agency
- Was my reply helpful? Please Like to let me know!
- Was your question answered? Awesome! Please Mark it as an Accepted Solution
levon
Tourist
13 0 1

Hmm those errors might be from the iframe, I did some extra coding with the help of this forum and chatgpt to widen the iframe to screen size.

 

The font I'm talking about is called Cinzel-SemiBold and appears in the middle of the iframe 'Internal Affairs' as seen on chrome 

ThomKnepper
Shopify Partner
196 30 71

For me it seems that the fonts are all loading properly actually.

Best wishes,
Thom Knepper - Athom.Agency
- Was my reply helpful? Please Like to let me know!
- Was your question answered? Awesome! Please Mark it as an Accepted Solution
levon
Tourist
13 0 1

Screenshot_20230429_144717_Messenger.jpg

 

Here's a screenshot of it on my end

ThomKnepper
Shopify Partner
196 30 71

This is an accepted solution.

Hi Levon,

 

I found the issue, you have set your height of your video wrapper with a padding %. After a quick look on your website I noticed that you're making quite a lot of fundamental mistakes. I would recommend you to check out this website and learn about the basics of the CSS box model.

 

https://web.dev/learn/css/box-model/

 

Setting a height of a element with the padding property is simply the worst thing you can do if you want to properly build your website.

 

I hope this helps.

Best wishes,
Thom Knepper - Athom.Agency
- Was my reply helpful? Please Like to let me know!
- Was your question answered? Awesome! Please Mark it as an Accepted Solution