WordPress主题开发:子文件夹中可能有主主题文件吗?

我正在本地开发一个主题, 并使用Gulp运行任务。我的主题目录结构如下所示:

  |- theme folder/
      |- app/
          |- css/
          |- fonts/
          |- images/ 
          |- index.html
          |- js/ 
          |- scss/
      |- dist/
         |- optimized files from app/
         |- all other standard WP theme files and subdirs
      |- gulpfile.js
      |- node_modules/
      |- package.json

当WordPress加载主题时, 我会看到一个空白屏幕, 这是可以预期的。 WP在主题文件夹的顶级目录中查找主题文件。是否可以直接指向dist文件夹?如果有帮助, 我将Flywheel用于本地开发设置。


#1


index.php, style.css(用于声明主题元数据的主要样式表), header.php和footer.php需要放置在主题文件夹的根目录中。其他所有文件(资产, 包含等)都可以位于其自己的子目录中。

有关更多详细信息, 请阅读:组织主题文件|主题开发人员手册。

来源:

https://www.srcmini02.com/66341.html

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_40527.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?