Skip to content
This repository was archived by the owner on Jun 20, 2025. It is now read-only.

Conversation

@jgpws
Copy link

@jgpws jgpws commented Feb 15, 2021

New full site theme Mixin' Styles- GB.

@@ -0,0 +1,27 @@
// Register new block variations
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not needed anymore. Define the template area and template parts in experimental-theme.json WordPress/gutenberg#30118

@@ -0,0 +1,126 @@
<?php
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are not needed anymore, you can add both the colors and gradients to experimental-theme.json

// Stylesheets
wp_enqueue_style( 'mixin-styles-gb-style', get_stylesheet_uri() );

if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not needed anymore, it is enqueued with the comments block

}
]
},
"custom": {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replace these with "Layout" WordPress/gutenberg#29335

@@ -0,0 +1,42 @@
<?php
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing this no longer causes a PHP waring

@@ -0,0 +1,7 @@
<!-- wp:paragraph -->
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A website can't be copyrighted to a theme =D

@@ -0,0 +1,35 @@
<!-- wp:group {"className":"mxs-wrapper"} -->
<div class="wp-block-group mxs-wrapper"><div class="wp-block-group__inner-container"><!-- wp:template-part {"slug":"header","theme":"mixin-styles-gb","tagName":"header","align":"full","className":"mxs-header mxs-header\u002d\u002dmain"} /-->
Copy link
Collaborator

@carolinan carolinan Mar 26, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove all "theme":"mixin-styles-gb" from template parts that are not nested, inner blocks, or the "template part not found" error message will show.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I remove "theme": "mixin-styles-gb" from each template part call, the header/footer disappears and is replaced with the message "Template part has been deleted or is unavailable."

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you using an older version of Gutenberg? Try the development version from GitHub.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I downloaded and installed the development version and the issue still exists. Do I need to recreate the header/footer or anything?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Delete any existing templates that are saved under appearance > templates

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of the templates were removed from the Appearance menu as well, but I still can't get the template parts to show up.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After moving the generated code outside of the group block, I see that it works. Based on this, I will move the code and adjust the CSS to how it looked before.

@@ -0,0 +1,35 @@
<!-- wp:group {"className":"mxs-wrapper"} -->
<div class="wp-block-group mxs-wrapper"><div class="wp-block-group__inner-container"><!-- wp:template-part {"slug":"header","theme":"mixin-styles-gb","tagName":"header","align":"full","className":"mxs-header mxs-header\u002d\u002dmain"} /-->
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the inner-container from all group blocks. This is related to WordPress/gutenberg#29335

@jgpws
Copy link
Author

jgpws commented Mar 29, 2021 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants