inboundnow / retired-landing-pages

Create landing pages for your WordPress site. Monitor and improve conversion rates, run A/B split tests, customize your own templates and more.
http://www.inboundnow.com/landing-pages/
GNU General Public License v2.0
4 stars 2 forks source link

Landing Page Templates Served From Theme Folder #181

Open DavidWells opened 9 years ago

DavidWells commented 9 years ago

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

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/24344295-landing-page-templates-served-from-theme-folder?utm_campaign=plugin&utm_content=tracker%2F260749&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F260749&utm_medium=issues&utm_source=github).
DavidWells commented 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

atwellpub commented 9 years ago
atwellpub commented 9 years ago

@DavidWells

I've support for all three in. What's left: