Focus on cloud service provider activities
Notes on website operation and maintenance

Solution to the problem of not displaying Chinese title content in WordPress themes

Most of the time, Lao Zuo also likes to look for free WORDPRESS theme templates overseas. Some friends may have some problems using their Chinese websites for overseas templates they find. For example, in the morning, when a netizen searches for a topic to use on his Chinese website, the title can only display English characters, and Chinese seems to be replaced. There is no problem for me to check the calling of the code title. It should be caused by the JS restrictions.

After consulting the data, it turns out that some foreign developers prefer to use Cufon font, which is not supported by default and needs to be restricted by JS, which leads to the failure to display Chinese characters. To solve this problem, we just need to find the restricted JS code and delete it.

usage method: We download the topic to the local, and then search“ Cufon.replace "Character, find the JS position. For example, I found:

<script type="text/javascript">/*<! [CDATA[*/ Cufon.replace (\'.singlepost .post .title h2, .singlepage .post .title h2, .post .title h2 a\', {hover:true}); Cufon.now();/*]]>*/</ script>

Then we delete and save the file, upload and replace it.

Domain name host preferential information push QQ group: six hundred and twenty-seven million seven hundred and seventy-five thousand four hundred and seventy-seven Get preferential promotion from merchants.
Like( zero )
Do not reprint without permission: Lao Zuo's Notes » Solution to the problem of not displaying Chinese title content in WordPress themes


Scan the code to follow the official account

Get more news about webmaster circle!
Entrepreneurship, operation and new knowledge