Skip to content
This repository was archived by the owner on Jul 9, 2026. It is now read-only.
This repository was archived by the owner on Jul 9, 2026. It is now read-only.

Button Blocks are failing to resolve on web #2158

Closed

Description

@chipsnyder

Describe the bug
When adding a button block to the app and opening on the web the block displays the error "This block contains unexpected or invalid content."

Following the blocks suggested resolution strategy turns it into a paragraph block.
Failing example

<!-- wp:button {"className":"wp-block-button__link"} -->
<a class="wp-block-button wp-block-button__link">Button 1</a>
<!-- /wp:button -->

Successful example

<!-- wp:button -->
<div class="wp-block-button"><a class="wp-block-button__link"></a></div>
<!-- /wp:button -->

The issue appears to be related to {"className":"wp-block-button__link"}

To Reproduce
Steps to reproduce the behavior:

  1. Add a Button block to a post
  2. Save the post
  3. Open the same post on the web
  4. Block shows a conversion error

Expected behavior
Block should be understood by the web.

Screenshots

App HTML:
image

Web Conflict:
image

Web Resolution Suggestion:
image

Smartphone (please complete the following information):

  • Device: Android Pixel 3a
  • OS: Android X
  • Version: 29

Additional context
Add any other context about the problem here.

Activity

  1. added
    [Type] Bug
    on Apr 15, 2020
  2. chipsnyder commented on Apr 15, 2020

    @chipsnyder
    ContributorAuthor

    This is a bug with using a new version of Gutenberg in-app than what was running on my test site. Closing this ticket. More info can be found here: #2153 (comment)

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Type] Bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions