How can I add ICP filing information at the bottom?

Viewed 293

dibu.png

2 Answers

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

If convenient, provide a universal custom script. Best wishes!

Everyone’s needs are different, so how can it be universal? Even if you are not familiar with js, you can now use AI to achieve this simple function

用下面这个代码块就可以了,把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