Skip to content

The Issue with demo import with WP 6.1 #44946

@anarieldesign

Description

@anarieldesign

Description

When importing demo content using WP 6.1 styles are not imported correctly although the same works fine in WP 6.0.2.

Imported content displays the theme's default colors and styling instead of the styling set for that particular demo. However, in the "Site Editor" styles are correctly displayed. Sometimes when I exit the Site Editor the styles are then correctly displayed in the front end as well, but sometimes it takes a few tries.

This issue happens with the WordPress default importer as well as our theme's built-in import system.

Step-by-step reproduction instructions

  1. install theme (I found this bug while checking our premium Basti theme with WordPress 6.1). If you need a theme file I can share it with you
  2. import demo(style) version different from the default demo (style)
  3. Imported content displays the theme's default colors and styling instead of the styling set for that particular demo -frontend
  4. in the "Site Editor" styles are correctly displayed
  5. when I exit the Site Editor the styles are then correctly displayed in the front end as well, but sometimes it takes a few tries or you need to wait for few minutes

Screenshots, screen recording, code snippet

Default WordPress Importer Video:

basti-default.mp4

Basti Demo Importer Video:

basti-importer.mp4

Environment info

  • WordPress Version 6.1
  • Gutenberg plugin is not installed

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

Is it possible to reproduce this with a default theme as well?

Same is happening with Twenty Twenty Two. I just installed the theme with WordPress 6.0 and choose the pink style variation. Exported the xml file. Installed 6.1 on the new installation, installed Twenty Twenty Two and imported xml file and same thing happens 🤷‍♀️

Metadata

Metadata

Assignees

No one assigned

    Labels

    Developer ExperienceIdeas about improving block and theme developer experienceGlobal StylesAnything related to the broader Global Styles efforts, including Styles Engine and theme.json[Feature] ThemesQuestions or issues with incorporating or styling blocks in a theme.[Type] BugAn existing feature does not function as intended

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions