使用typecho butterfly主题搭建完后使用发副标题无法显现以及后台设置,也无法开启。发现在浏览器开发者工具中会报如下错误。
Failed to load resource: the server responded with a status of 404 ()/usr/themes/butterfly/js/typed.min.js:1
喂给AI,解决这个报错后副标题和打字效果都出现了,且在后台更改副标题内容也能显现,AI更改了文件 footer.php 中
第182行(自定义副标题部分)
"function" == typeof Typed ? subtitleType() : getScript("/usr/themes/butterfly/js/typed.min.js")
.then(subtitleType)修改后
"function" == typeof Typed ? subtitleType() : getScript("<?php $this->options->themeUrl('js/typed.min.js') ?>")
.then(subtitleType)第200行(默认hitokoto部分)
"function" == typeof Typed ? subtitleType() : getScript("/usr/themes/butterfly/js/typed.min.js")
.then(subtitleType)修改后
"function" == typeof Typed ? subtitleType() : getScript("<?php $this->options->themeUrl('js/typed.min.js') ?>")
.then(subtitleType)使用AI解决这问题不知道是否恰当,这个分享出来给各位做个参照,我在网上翻了一遍没找到解决办法出此下策。