Home › Forums › WoodMart support forum › Change font to impact, it works only in desktop but doesn't work in mobile
Change font to impact, it works only in desktop but doesn't work in mobile
- This topic has 23 replies, 2 voices, and was last updated 4 years, 6 months ago by Elise Noromit.
-
AuthorPosts
-
June 12, 2020 at 7:42 am #202870
KHParticipantHello, I want to change font family for “Sold Out” label to be Impact, I put this class
.labels-rectangular .product-label, .out-of-stock product-label
in Advanced typography but it works only in desktop. In mobile, the font still looks the same, nothing changed.June 12, 2020 at 8:09 am #202888
Elise NoromitMemberHello,
Please provide your site URL so that we could provide you with custom CSS. If your site is under maintenance, please provide your site admin access in the private area
Best Regards
June 12, 2020 at 4:17 pm #203026
KHParticipantHere you are
June 12, 2020 at 8:34 pm #203062
Elise NoromitMemberHello,
Please check the credentials. I cannot log in.
Best Regards
June 13, 2020 at 7:00 am #203089
KHParticipantSorry please change that email address to “admin” that is username.
June 13, 2020 at 9:48 am #203120
Elise NoromitMemberHello,
Please add this code to the Theme Settings > Custom CSS > Global:
body .labels-rectangular .out-of-stock { font-size: 15px; }
You can use this selector in the Advanced typography
body .labels-rectangular .out-of-stock
Best Regards
June 13, 2020 at 1:35 pm #203173
KHParticipantNo, it’s not working. I even use !important but not working.
June 13, 2020 at 8:00 pm #203212
Elise NoromitMemberHello,
Please find this custom CSS in the Theme Settings > Custom CSS and change it:
body .labels-rectangular .out-of-stock { font-family: Impact, Charcoal, sans-serif, Tahoma, Helvetica, sans-serif!important; font-weight: 400; font-size: 34px; color: #ff0036; }
Best Regards
June 14, 2020 at 4:47 am #203259
KHParticipantI don’t know what you mean by “change it”. This is css code is already there but it’s not working in mobile.
June 14, 2020 at 7:40 am #203284
Elise NoromitMemberHello,
Find this code and insert in Theme Settings > Custom CSS > Mobile, change this line as per your needs:
font-size: 34px;
Best Regards
June 14, 2020 at 12:40 pm #203337
KHParticipantMy point is I add the code to all the place: global,desktop,tablet and mobile butt it’s doesn’t work in mobile. I already clear cache, sill doesn’t work.
June 14, 2020 at 8:52 pm #203398
Elise NoromitMemberHello,
Check if you have already added the code this code is in force. It the code works in the destop /tablet it should work in mobile as well.
Best Regards
June 15, 2020 at 7:55 am #203500
KHParticipantI don’t know why it doesn’t work. I remove all the custom css code in Appearance to see. Also check in other place, I don’t see duplicate css code that is in force.
June 15, 2020 at 1:25 pm #203614
Elise NoromitMemberHello,
Please update your site access. I cannot log in with the credentials you have provided.
Best Regard
June 16, 2020 at 6:59 am #203819
KHParticipantI can login with the credentials provided. Last time I told you to change that email to “admin” Here you are.
June 16, 2020 at 9:16 am #203873
Elise NoromitMemberHello,
Correct this code https://prnt.sc/t0mege change the font size as per your needs.
The same you have in Mobile https://prnt.sc/t0mfg6
Best Regards
June 16, 2020 at 11:44 am #203952
KHParticipantwith that css code in the correct places as you can see,It still does’t work. I even clear cache in my browser and also cache in cpanel. Here is the look in my real mobile. https://www.dropbox.com/s/bk0mowsd1ksky84/Screenshot_20200616_183826.jpg?dl=0. Did you try viewing my website with your mobile device or you just resize the browser to see? Resizing the browser, you will see that it works. However, it doesn’t work when you view it in a mobile device.
June 16, 2020 at 1:12 pm #203986
Elise NoromitMemberHello,
Reduce the font-size to 14px in all the code snippets. Now your font-size is 34px.
Best Regards
June 16, 2020 at 5:05 pm #204054
KHParticipantI’m talking about font family, you told me to change font size. This is so crazy. How it’s related to font size? My question is font Impact doesn’t show in mobile. It shows only in desktop. Now you told me to change font size? I’ve changed font size to 14px in all the code snippets. So what? I view my site, just only font size changed, but not font family.
June 16, 2020 at 10:32 pm #204090
Elise NoromitMemberHello,
I have misunderstood you. I thought you mean fit by size.
Try to write the font-family in this way:
font-family: Impact, Charcoal, sans-serif, Arial, Helvetica, sans-serif;
Please correct the font-size as they were.
Best Regards
June 17, 2020 at 2:58 am #204116
KHParticipantNo, it doesn’t work. The font still doesn’t change to Impact in mobile, it changes only in desktop.
June 17, 2020 at 2:12 pm #204285
Elise NoromitMemberHello,
After double-checking, Impact is in the list of the Standard font-families. https://prnt.sc/t1gjid This font is plugged in locally only with Windows. Android does not have this font.
If you still want the Impact font family, you need to find this font and upload as the custom font https://xtemos.com/docs/woodmart/faq-guides/upload-custom-fonts/ Then when you chose the font, you should choose it from the Custom fonts list.
Then you can assign the font to the selector which you used via Advanced Typography. It would work.
You can remove my duplicating selectors and all the custom CSS I have provided.
I do apologize for confusing.
Best Regards
June 18, 2020 at 7:46 am #204457
KHParticipantDone!
June 18, 2020 at 8:09 am #204472
Elise NoromitMemberIf you have any questions please feel free to contact us.
Best Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register