elementor / elementor/elementor
Allow "front" of permalink to be set for landing pages
- Dominant language
- PHP
- Stars
- 7.1k
- Forks
- 1.6k
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 193
Description
## Prerequisites
- [x] I have searched for similar features requests in both open and closed tickets and cannot find a duplicate.
- [x] The feature is still missing in the latest stable version of Element or ( Elementor Pro. )
**What problem is your feature request going to solve? Please describe.**
Landing pages currently use the `/blog/` prefix.
This isn't ideal for page-based sites as it's not part of the Blog.
**Describe the solution you'd like**
Please add an option to [customize the `with_front` parameter](https://developer.wordpress.org/reference/functions/register_post_type/#rewrite) of the landing page custom post type registration to false (so that it's simply `domain.com/landing-page` instead of `domain.com/blog/landing-page`.
Perhaps I'd like to customize it too, i.e. make my landing pages appear at `domain.com/landing-pages/landing-page` to prevent conflicts with other pages?
**Describe alternatives you've considered**
Running custom code to edit the post_type_args to overwrite the re-write. Obviously, this requires manual intervention and code. [Something like this](https://wordpress.stackexchange.com/questions/323461/how-to-alter-args-of-a-custom-post-type). Which will obviously break as soon as Elementor changes anything else (so ideally, it'd just be natively supported).
`$args['rewrite']['with_front'] = false;`
Contributor guide
Assessment
This issue has not been assessed yet.