最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Non-Blog Website without Search: are comments.php and search.php in theme still required?

programmeradmin1浏览0评论

What is the best practice when it comes to a static, minimal WP website? It will have no blog updates, no discussion/comments, and no search. Should all the standard template files still be included?

What is the best practice when it comes to a static, minimal WP website? It will have no blog updates, no discussion/comments, and no search. Should all the standard template files still be included?

Share Improve this question edited Aug 7, 2019 at 23:42 Phantasmix asked Aug 7, 2019 at 23:33 PhantasmixPhantasmix 1501 silver badge15 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

According to the documentation, the only required files in a theme are style.css and index.php. All other files are optional. You can use the ones you need and discard the ones you don't need.

If you haven't seen it, I'd recommend you check out WordPress's developer site on the topic of themes.

发布评论

评论列表(0)

  1. 暂无评论