Skip to content

Localization for Chinese Policy #4697

Discussion options

You must be logged in to vote

My solution may not be elegant, but sufficient to this problem.

In your administrator panel, go to theme settings, and embed the following lines to the HTML code:

<script type="text/javascript">
window.onload = function(){
  var footerInfo = document.createElement("span");
  footerInfo.innerHTML = "<br>蚌埠住了";
  footerNode = document.getElementsByTagName("footer")[0];
  footerNode.firstChild.appendChild(footerInfo);
  footerNode.firstChild.style["text-align"] = 'center';
};
</script>

Save it and you will get what you want. Another way is to modify the nav-footer.vue source file and rebuild the server.

我的解法比较粗暴,不过可以直接解决你的问题。

在管理员面板中,进入主题设置菜单,在“正文HTML注入”中加入上面的代码并保存就OK了。你也可以直接修改vue的源码,然后用yarn…

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@Moebyte
Comment options

@573077632
Comment options

@lu-zhibin
Comment options

@zcorn2017
Comment options

@SUNNY-CT
Comment options

Answer selected by Molyleaf
Comment options

You must be logged in to vote
1 reply
@Moebyte
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
9 participants