简体   繁体   English

Wordpress:活动主题未显示在“主题”文件夹中

[英]Wordpress: Active theme not showing in 'Themes' folder

I'm developing a wp site locally, using XAMPP.我正在使用 XAMPP 在本地开发一个 wp 站点。 However, the active theme I'm using (OceanWP) is not showing up in the wp-content\\themes folder where it is supposed to be.但是,我正在使用的活动主题 (OceanWP) 没有出现在它应该在的 wp-content\\themes 文件夹中。 I can see 3 other themes that are inactive.我可以看到其他 3 个不活动的主题。 When looking at the src in in Chrome, i can see that the theme I'm using is actually there, but, as I said, when I navigate there in file explorer it is not visible.在 Chrome 中查看 src 时,我可以看到我使用的主题实际上就在那里,但是,正如我所说,当我在文件资源管理器中导航时,它不可见。 Have anyone experienced this before?有没有人经历过这种情况?

I need to access that folder to get to the functions.php file in my theme in order to make some adjustments.我需要访问该文件夹才能访问主题中的 functions.php 文件,以便进行一些调整。 Hope someone can help.希望有人能帮忙。 Thanks in advance.提前致谢。

Yes, saw it today for the first time.是的,今天第一次看到。 Was driving me nuts.快把我逼疯了。 The solution that worked for me was to try to install the theme again from its zip file (using upload theme button) It failed with the message "Destination folder already exists."对我有用的解决方案是尝试从其 zip 文件中再次安装主题(使用上传主题按钮)它失败并显示消息“目标文件夹已经存在”。 followed by the folder name.后跟文件夹名称。 This did not have the same parent as the standard twentytwenty folder.这与标准的二十二十文件夹没有相同的父文件夹。 In my case the parent was in /var/www/html/wp-content/themes/在我的情况下,父母在 /var/www/html/wp-content/themes/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM