Opened 6 years ago
Closed 6 years ago
#52130 closed defect (bug) (duplicate)
Twenty Twenty-One: Embedded HTML doesn't display correctly
| Reported by: | celendesign | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Bundled Theme | Version: | 5.6 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: | ui, accessibility |
Description
When embedding custom HTML (I use it to embed Google My Maps) into a post with the WordPress theme twenty twenty one, the map is displayed on the left edge but apart from 20px completely off screen. See attached files.
Example: https://hitchedtotravel.com/krk-best-beaches/ and scroll down to the chapter Map
Workaround: You can get it working by adding a group around the HTML block, then it displays correctly.
Attachments (3)
Change History (6)
@
6 years ago
Display of the map on the page (source: https://hitchedtotravel.com/krk-best-beaches/)
#1
@
6 years ago
- Component Posts, Post Types → Bundled Theme
- Summary Embedded HTML in theme twenty twenty one doesn't display correctly → Twenty Twenty-One: Embedded HTML doesn't display correctly
#3
@
6 years ago
- Milestone 5.6.1
- Resolution → duplicate
- Status new → closed
Duplicate of #52004.
Hi
This is a duplicate of https://core.trac.wordpress.org/ticket/52004
The cause is not the HTML block, but an incorrect max-width set to iframes.
HTML blocks are not aligned because they can contain anything and they do not have a wrapper element.
It is only more apparent in themes that does not use a negative margin to align the wide and full with blocks.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
HTML block used in the editor