elementor / elementor/elementor

Allow "front" of permalink to be set for landing pages

Open
#16,476 1 comment 2 reactions 0 assignees View on GitHub
mod/r*
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.