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

New theme- Mixin' Styles- GB #208

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

New theme- Mixin' Styles- GB #208

wants to merge 6 commits into from

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants