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

The class for post title on the Editor is in the wrong element (featured image) #60692

Closed
adrianahdez opened this issue Apr 12, 2024 · 0 comments · Fixed by #60728
Closed

The class for post title on the Editor is in the wrong element (featured image) #60692

adrianahdez opened this issue Apr 12, 2024 · 0 comments · Fixed by #60728
Assignees
Labels
[Block] Latest Posts Affects the Latest Posts Block [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended

Comments

@adrianahdez
Copy link

Description

This issue is related to this one. In there, the class wp-block-latest-posts__post-title was added to the post title.

The problem is, on the Editor, it was added to the featured image instead of the post title.
The HTML on the Editor looks like this:
image

That's why the styles I've defined for post title to apply on both (frontend and Editor), in the Editor are applying to the featured image instead of the post title.

Step-by-step reproduction instructions

  • Create a Post in Wordpress and set a title
  • Open the Editor in any page
  • Insert the "Latest Post" Block
  • On the Editor, inspect the HTML of the block to see the class for post title placed inside the featured image

Screenshots, screen recording, code snippet

No response

Environment info

Tested with:

  • Wordpress: 6.5 and 6.5.2
  • Classic theme: Custom development, with 0 plugins installed.
  • FSE themes: Clean Wordpress with only Twenty Twenty Four, Twenty Twenty Three and Twenty Twenty Two themes and no plugins.
  • MacOS Sonoma 14.4.1
  • Tested in Chrome

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Latest Posts Affects the Latest Posts Block [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants