Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import Elementor Page Template resets Wordpress Page Template #4498

Closed
pingram3541 opened this issue May 21, 2018 · 1 comment
Closed

Import Elementor Page Template resets Wordpress Page Template #4498

pingram3541 opened this issue May 21, 2018 · 1 comment
Labels
status/merged Indicates when a Pull Request has been merged to a Release.

Comments

@pingram3541
Copy link
Contributor

  • [ x ] I have searched for similar issues in both open and closed tickets and cannot find a duplicate.
  • [ x ] The issue still exists against the latest stable version of Elementor.

Description

When importing a page template from the library into a page, and choosing the option to also import the page settings (custom css, classes, id's, advanced styles...) the WordPress page template is reset to default.

Steps to reproduce

  1. Create a new page and set the template as Elementor Canvas
  2. Edit page with Elementor (notice it loads w/ Canvas as expected)
  3. Import a saved page template from the Elementor library, preferably one also that uses Canvas
  4. Choose Yes to the option of also importing and overwriting the current page settings (needed to get any customizations of the page's settings stored in the template, mainly page-wide custom css from Elementor Pro)
  5. Watch as template is imported but after a moment the entire preview reloads w/ what was imported but back to the theme's default template. One must manually go back and set the template to Canvas.

Isolating the problem

  • [ x ] This bug happens with only Elementor plugin active (and Elementor Pro).
  • [ x ] This bug happens with a default WordPress theme active.
  • [ x ] I can reproduce this bug consistently using the steps above.

Environment

-mixed/all

@mariovalney
Copy link
Contributor

I'm falling on a problem like yours when I'm using Elementor:instance()->document->save() to create pages in a updater script.

For my case I debugged and get the problem:
https://github.com/pojome/elementor/blob/master/core/settings/page/manager.php#L181

Template is being replaced by default if no $settings['template'] value is there.

Maybe it's causing your problem too.

@bainternet bainternet added the status/merged Indicates when a Pull Request has been merged to a Release. label Jul 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/merged Indicates when a Pull Request has been merged to a Release.
Projects
None yet
Development

No branches or pull requests

3 participants