2 Answers

Visit /admin/css-html, add through custom script

用下面这个代码块就可以了,把textContent改成ICP备案号的文字,链接改成ICP官网的链接就行了。代码块加在自定义html的页脚里面

Just use the following code block to change textContent to the text of the ICP registration number and the link to the ICP official website.

<script>
    // 找到目标容器
    const container = document.querySelector('.py-3.container');

    if (container) {
        // 创建新的 <p> 元素
        const newParagraph = document.createElement('p');
        newParagraph.className = 'text-center mb-0 small text-secondary';

        // 创建超链接元素
        const link = document.createElement('a');
        link.href = 'https://example.com';
        link.textContent = '点击这里访问示例站点';
        link.target = '_blank'; // 在新标签页打开链接

        // 将超链接加入到 <p> 元素中
        newParagraph.appendChild(link);

        // 在容器内部最后插入新段落
        container.appendChild(newParagraph);
    }
</script>

result:

image.png

Powered by Answer - the open-source software that powers Q&A communities.
Made with love © 2024 Apache Answer Meta.