Best practice for customizing one single page
-
What’s the best practice if you have want have one ore more custom pages in your theme?
As far as I know, simplest is just page-slug.php example page-privacy-policy or page-terms-conditions.php. It’s easy for the developer to recognize immediately which page you are working on, but if someone changes the slug in WP Admin then the template won’t work anymore
The other way is to us post ID example page-2334.php, but if you have many you have to open each php file to see which template it refers to
Just wondering how other developers do this
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Best practice for customizing one single page’ is closed to new replies.