Open DavidWells opened 9 years ago
Bump this. @atwellpub
We need to check in current theme folder /landing-pages/ for templates.
Same for other post types.
if the folder exists in the current active theme (or child of that theme) use those templates
PS not - /wp-content/themes/current-theme/landing-pages/templates/name but just - /wp-content/themes/current-theme/landing-pages/name
Again this is for better developer experience. With this setup people will be able to have their landing pages under version control and push updates to them via GIT.
This also streamlines our setup of how template downloads are served and updated.
Templates uploaded via the template manage will go to the same place in the wp-uploads folders
@DavidWells
I've support for all three in. What's left:
Implement a way for people to load landing pages from their current theme folder.
If a person has a valid landing page template in /wp-content/themes/currenttheme/landing-pages it will appear on the template selection page.
Example of how EDD does this to override template files https://github.com/easydigitaldownloads/Easy-Digital-Downloads/blob/f681bf1e423cff3b300e0d808a0a7ec559ffb35e/includes/template-functions.php#L604-L620
So /wp-content/themes/currenttheme/landing-pages/my-lp loads my-lp template for the site to use
Keep the uploads directory as it is.
Why? This gives a cleaner path for people to implement landing pages with themes and it also gives people the ability to commit landing page templates to their site GIT repos
This is in effort to promote more dev usage of landing pages