Localization for Chinese Policy #4697
-
China authority requires a government-record number to be placed on the foot of the homepage and the login screen.Can you offer a input box to input additional word or custom html code shown in the footer panel. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
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 我的解法比较粗暴,不过可以直接解决你的问题。 在管理员面板中,进入主题设置菜单,在“正文HTML注入”中加入上面的代码并保存就OK了。你也可以直接修改vue的源码,然后用yarn重新构建服务器。 |
Beta Was this translation helpful? Give feedback.
-
An additional footer text field has been added to the upcoming v3 release for such scenarios: |
Beta Was this translation helpful? Give feedback.
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:
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…