WordPress网站迁移-缺少图标 [英] WordPress site migration - icons missing
问题描述
我最近已按照 https://codex.wordpress上的步骤将本地站点迁移到登台服务器。 org / Moving_WordPress ,并且一切似乎都正常运行。
I have recently migrated my local site to a staging server by following the steps at https://codex.wordpress.org/Moving_WordPress and everything seemed to have worked correctly.
最初,每个数据库都指向错误的url(wp_options siteurl和home字段),并且需要切换,但这样做几乎可以正常进行-除了图标。
Initially the database of each was pointing to the incorrect url's (wp_options siteurl and home fields) and needed switching, but having done this nearly everything has moved correctly - except for the icons.
使用的主题从许多不同的站点中提取图标(字体真棒, ionon等),但都没有显示。查看每个站点的标记后,我可以看到它们指向错误的url(将站点转移到暂存站点,反之亦然)。
The theme being used pulls it's icons from a number of different sites (font-awesome, ionicons etc.) but none of them are showing. Having looked in the tags of each site I can see that they are pointing to the incorrect url (dev site to staging and vice versa).
有人知道我会在哪里需要去修改吗?我已经搜索了数据库,找不到从哪里将其拉出。
Does anyone know where I would need to go to amend this? I have searched the database and cannot find from where this is being pulled.
在这里的任何帮助将不胜感激。
Any help here would be greatly appreciated.
推荐答案
我最终解决了这个问题。
I managed to solve this in the end.
- 进入管理面板,进入设置>常规
- 将 WordPress地址(URL)和站点地址(URL)更改为不同的地址(在这种情况下,我只是在当前URL中添加了 www。)并保存了更改。
- 这重定向了我,我不得不再次使用用户名和密码登录。
- 然后我回到同一区域并将其返回到其原始URL并保存更改。
- Go into the admin panel into Settings > General
- Change the WordPress Address (URL) and Site Address (URL) to a different address (in this case I just added 'www.' to the current URL) and save the changes.
- This redirected me and I had to sign in again with the username and password.
- I then went back into the same area and returned it to it's original URL and saved the changes.
我认为这可能是可视化作曲家插件需要重新编译URL的问题。无论哪种方式,都可以解决问题。
I believe this may have been an issue with the visual composer plugin needing to recompile the URLs. Either way, this resolved the issue.
感谢您的建议:)
这篇关于WordPress网站迁移-缺少图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!