My WordPress site uses the following:
- Header.php file from the theme.
- Footer.php file from the theme.
- Apart from the Posts Page, the rest of the site makes use of Gutenberg blocks (not header or footer area).
- The posts page uses the site's index.php file at wp-content/themes/meow/index.php
When I updated the site to 5.9, the posts page no longer looked the same. I checked what file loads when the posts page is viewed in the browser:
- Before the update to 5.9, the site loads: wp-content/themes/meow/index.php.
- After the update, the site loads: wp-includes/template-canvas.php
I thought WordPress was supposed to be future-proof. How can I make use of index.php, instead of template-canvas.php, when the site is updated to 5.9?
example.com/hello-world
only (i.e. other pages like category archives and search results pages are not using thetemplate-canvas.php
)? Also, "I checked what file loads" - how did you check? Try adding a dummy text (e.g.test123
) to theindex.php
file and see if the text is showing on the single post pages?