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

plugin development - How to access index file in Block Themes?

programmeradmin2浏览0评论

I'm new to wordpress code and read that index.php is located in the root/themes/yourtheme/index.php.

When I open index.php in the twentytwentytwo folder in my wordpress directory, it sais that block themes do not use php templates:

Where do I find the file with <head> and <body> tags etc. ?

I'm new to wordpress code and read that index.php is located in the root/themes/yourtheme/index.php.

When I open index.php in the twentytwentytwo folder in my wordpress directory, it sais that block themes do not use php templates:

Where do I find the file with <head> and <body> tags etc. ?

Share Improve this question asked Feb 20, 2022 at 14:36 Artur Müller RomanovArtur Müller Romanov 1112 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

The relevant file is located in wp-includes/theme-compat/header.php

发布评论

评论列表(0)

  1. 暂无评论