cpcn Posted December 24, 2023 Share Posted December 24, 2023 Hey! So I have two questions and I'm going to post them both to save spamming the forum. My website is: http://choypingclarkeng.com/ 1: I want to make the Chinese text on this page into a different font/size etc. You can see it also isn't really in line with the English text either. https://www.choypingclarkeng.com/theatremaking/wwww 2: On my Mac, the font I want for the main links shows up for the Chinese text. I've adjusted this in code injection to make it look right. However on my Windows laptop and Android phone, the Chinese text is in a different font/size/etc. And on my Android: Is there a way to fix this so it will look like the style I want? It's really annoying! Thank you. Link to comment
Solution tuanphan Posted December 27, 2023 Solution Share Posted December 27, 2023 #1. Edit this code from Code Injection <script> $("span.portfolio-hover-item-content:contains('遊遊野野')").html(function(_, html) { return html.replace(/(遊遊野野)/g, '<span class="chinese">$1</span>'); }); </script> to this code <script> $("span.portfolio-hover-item-content:contains('遊遊野野')").html(function(_, html) { return html.replace(/(遊遊野野)/g, '<span class="chinese">$1</span>'); }); // theatremaking www page $(".html-block h2:contains('遊遊野野')").html(function(_, html) { return html.replace(/(遊遊野野)/g, '<span class="chinese2">$1</span>'); }); // theatremaking www page - team $(".html-block p:contains('吳彩萍')").html(function(_, html) { return html.replace(/(吳彩萍)/g, '<span class="chinese3">$1</span>'); }); </script> <style> .chinese2 { font-size: 30px !important; } .chinese3 { font-size: 10px !important; } </style> #2. Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
cpcn Posted December 27, 2023 Author Share Posted December 27, 2023 Worked perfect thank you! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment