进入后台,点击外观,编辑文件 footer.php
替换以下内容

<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>

        </div><!-- end .row -->
    </div>
</div><!-- end #body -->

<footer id="footer" role="contentinfo">
    &copy; <?php echo date('Y'); ?> <a href="<?php $this->options->siteUrl(); ?>"><?php $this->options->title(); ?></a>
    <?php _e('Powered by <a href="https://typecho.org">Typecho</a>'); ?><br>
    <script defer src="https://vercount.one/js"></script>

    <?php if($this->is('index')): ?>
        <span id="busuanzi_container_site_pv" style='display:block'>
            网站总阅读量 <span id="busuanzi_value_site_pv"></span> 次<br>
        </span>
        <span id="busuanzi_container_site_uv" style='display:block'>
            网站访客数量 <span id="busuanzi_value_site_uv"></span> 人<br>
        </span>
    <?php else: ?>
        <span id="busuanzi_container_site_pv" style='display:block'>
            网站总阅读量 <span id="busuanzi_value_site_pv"></span> 次<br>
        </span>
        <span id="busuanzi_container_page_pv" style='display:block'>
            文章阅读量 <span id="busuanzi_value_page_pv"></span> 次<br>
        </span>
        <span id="busuanzi_container_site_uv" style='display:block'>
            网站访客数量 <span id="busuanzi_value_site_uv"></span> 人<br>
        </span>
    <?php endif; ?>

</footer><!-- end #footer -->

<?php $this->footer(); ?>
</body>
</html>

即可正常统计

标签: wtjj

添加新评论