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

Sage 9 + Wordpress 6.4 and 6.4.1 create broken Gutenberg layout #3160

Closed
JoshuaVB opened this issue Nov 29, 2023 · 3 comments
Closed

Sage 9 + Wordpress 6.4 and 6.4.1 create broken Gutenberg layout #3160

JoshuaVB opened this issue Nov 29, 2023 · 3 comments
Labels
9.x Sage 9 related bug

Comments

@JoshuaVB
Copy link

JoshuaVB commented Nov 29, 2023

Version

9.0.9

What did you expect to happen?

Normal gutenberg styles to appear

What actually happens?

Broken gutenberg styles appear

Screenshot 2023-11-29 003126

Steps to reproduce

  1. Have a Sage 9.0.9 theme active with WP Core 6.4 or 6.4.1 present
  2. Go to any page or post and edit it via Gutenberg.

Reverting to WP Core 6.3.2 or lower fixes the issue.

System info

No response

Log output

No response

Please confirm this isn't a support request.

Yes

@JoshuaVB JoshuaVB added the bug label Nov 29, 2023
@andrewmarino
Copy link

Ran into the same issue, this fixed it in my case since my Sage 9 themes do not have a theme.json file in them.

/**
 * Satisfy WP check for theme.json without this file being present.
 *
 * @since 6.3
 * @link https://github.com/roots/sage/issues/3143
 */
add_filter('theme_file_path', function ($path, $file) {
    if ($file === 'theme.json') {
        return false;
    }

    return $path;
}, 0, 2);

@retlehs retlehs added the 9.x Sage 9 related label Dec 13, 2023
@JoshuaVB
Copy link
Author

@andrewmarino Amazing, thank you so much! Added this to functions.php and it worked like a charm.

@retlehs retlehs closed this as completed Jan 18, 2024
@josialoos
Copy link

works perfectly thanks so much ❤️️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
9.x Sage 9 related bug
Projects
None yet
Development

No branches or pull requests

4 participants