Creating a theme using static pages in theme root …
-
My wordpress developer has created a theme for me using static PHP files in the root folder of my theme eg. about-us.php, services.php etc… These files can only be updated and changed by modifying the HTML/CSS internally and externally.
This throws up a number of issues. Namely, I can’t Yoast SEO these static pages because the headers are generic and fixed. I have to write all the HTML/CSS myself. I can’t edit these pages in the block editor. And finally I can’t seem to add duplicates of these pages to the site.
Looking at regular themes, I see they just contain PHP code in the files in theme root. And presumably grab the HTML from the block editor.
How can i go about fixing this mistake? And start editing these static pages dynamically? Or at least how do i duplicate a static file eg. my-analytics-post.php and have it show up as mysite.com/my-analytics-post/
I’ve looked at the template hierarchy and i feel that what I’m doing ie. changing the slug on the post page. Should do the trick.
Any thoughts or suggestions ? Should i get my dev to create dynamic pages from now on ?
- The topic ‘Creating a theme using static pages in theme root …’ is closed to new replies.