Add php file inside my-theme inside a block template
-
Hey WP
I have a block theme official WP TT4. I also have a loose canon of a PHP page that displays without any integration into my theme. So I would like to make a new custom template that has my header and footer and then simply throw this php content into that template. I am not a PHP coder, sorry, but I can delete or copy paste a line of code. I just need this seamless integration.
The loose canon php file is located in a custom folder inside themes > tt4 > …. so it should not get overwritten at upgrades.
First things first, but more advanced step 2, I would like to create 2 different themes of loose canon php. This could be for example Light / Dark theme. Should I
- Create those strictly in CSS? And how can I then allow a user to select light / dark
- Create a copy of Loose Canon php and do things in there? and how can user A, B and C then select their individual theme
- Create 2 templates in block theme and then style in there and css. How can I then make the themes (templates) selectable by user.
Any suggestions will be a great help. Even better, if someone will share a few snippets to do this, that’s just perfect. I guess, I am not the only one with this need…
Thx
- The topic ‘Add php file inside my-theme inside a block template’ is closed to new replies.