Not possible to provide instructions to implement it but I can share ideas. Maybe it will be helpful.
Write a script which will detect the specific siring from each page and wrap it with a class.
Parallel to this we need to assign css with that class. In this way this string will look as you need.
Another way is to manually edit the string all over the store, assign the class and do css.
Edit: fixed that font weight issue by adding “black” to the end of the font name. Other issues still remain however. Also noticed this issue on mobile:
Thanks, I just tried adding this where the old code used to be in theme.liquid but it looks like it did before any edits. Can you check the live website again? Thanks
It seems that the font is not being applied on Windows or Mobile systems. The screenshot above has all the font faces which are currently added to the website, which you can typically find in the theme.liquid file.
To resolve this issue, we need to add the font face of Roboto Condensed for Black (font weight of 900).
To fix this, please follow the steps below:
Download the Roboto Condensed font from here if you don’t have it already. Ensure that it is in WOFF2 format for better site performance.
Upload the Roboto Condensed Black font to the assets folder.
Go to theme.liquid and locate the font faces. Create a similar font face CSS code like the one below and paste it above everything, just after the opening tag.
By following these steps, we can add the Roboto Condensed font face for Black and ensure that it is applied correctly on Windows systems.
Hey @empiricalarby ,
We are almost there, I am sure this code will be the final polished one that will solve all the issues. Please replace the earlier JavaScript code with this one. Kindly make sure that it is inside a tag.
The ‘font-file-name’ needs to match with the font file name uploaded in the assets folder and should be wrapped in quotes. I missed it in my earlier code. My apologies.
Please apply the changes and also provide me with the screenshot of the font file present in the assets folder so that I can check and confirm.
This is by far the closest solution yet, no broken links! All functionality works as intended, and desktop looks perfect. There’s just one remaining issue and that’s how it shows up on mobile (safari, iOS). The font looks like this on iPhone:
Awesome, it’s looking pretty good on all platforms now, just one issue is that it looks “bold” on Safari and Macbook instead of “black” font weight. On Windows desktop it’s 100% perfect. Any idea if there’s a fix for this?
There could be an issue with the font file. Can you try the below font file. Just rename it to “RobotoCondensed-Black.woff2” and upload it in the assets folder?