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

Footnotes Block malfunctions on nested content #79384

Closed
zachspears opened this issue Jul 13, 2023 · 6 comments
Closed

Footnotes Block malfunctions on nested content #79384

zachspears opened this issue Jul 13, 2023 · 6 comments
Labels
Blocks Editor blocks, aka Gutenberg blocks, plugins, and extensions [Closed] Resolved Issue is resolved. Use for issues that can be closed but did not have an explicit fix with a PR. [Platform] Atomic [Platform] Simple [Pri] Normal Schedule for the next available opportuinity. [Status] Core Fix Needed A fix within the Core WordPress or Gutenberg project is required to resolve this issue. Triaged To be used when issues have been triaged. [Type] Bug

Comments

@zachspears
Copy link

zachspears commented Jul 13, 2023

Quick summary

When using the new footnotes block, it does not actually create footnotes consistently (I think this may be when the original block for the footnote is nested).

Steps to reproduce

steps updated 2023-07-17 - cuemarie

  1. Create a new post
  2. Add nested text content (such as inside a group or column block)
  3. Add a footnote to the nested text

What you expected to happen

Footnote should open as shown in the announcement post: p7DVsv-hNL-p2

What actually happened

Impossible to add footnote:

Screen.Recording.2023-07-13.at.2.05.07.PM.mov

Impact

Some (< 50%)

Available workarounds?

Yes, easy to implement

Platform (Simple and/or Atomic)

Simple, Atomic

Logs or notes

Workaround using page jumps and manually making footnotes as was done prior to this.

@zachspears zachspears added [Type] Bug Blocks Editor blocks, aka Gutenberg blocks, plugins, and extensions User Report Needs triage Ticket needs to be triaged labels Jul 13, 2023
@zachspears
Copy link
Author

Note to add that I tried other pre-defined layouts so it is unlikely this is limited to the Heiwa theme, but I did not have time to test that.

@github-actions github-actions bot added [Platform] Atomic [Platform] Simple [Pri] Low Address when resources are available. labels Jul 13, 2023
@cuemarie
Copy link

cuemarie commented Jul 17, 2023

📌 SCRUBBING : RESULT - Replicated / Could Not Replicate / Uncertain

  • Tested on Simple – Replicated
  • Tested on Atomic – Replicated
  • Replicable outside of Dotcom – Yes

📌 FINDINGS/SCREENSHOTS/VIDEO

  • Replicated consistently - the issue here is that footnotes on content nested inside of groups, columns, etc. are not working properly.

Screenshots/Recordings

4aAVQx.mp4

Outside of Dotcom

Markup on 2023-07-17 at 11:19:44

📌 ACTIONS

@cuemarie cuemarie changed the title Footnotes Block won't create footnotes Footnotes Block malfunctions on content nested in groups Jul 17, 2023
@cuemarie cuemarie added [Pri] Normal Schedule for the next available opportuinity. [Status] Core Fix Needed A fix within the Core WordPress or Gutenberg project is required to resolve this issue. Triaged To be used when issues have been triaged. and removed [Pri] Low Address when resources are available. Needs triage Ticket needs to be triaged labels Jul 17, 2023
@cuemarie cuemarie changed the title Footnotes Block malfunctions on content nested in groups Footnotes Block malfunctions on nested content Jul 17, 2023
@cuemarie
Copy link

This will be fixed in WP 6.3 with WordPress/gutenberg#52682

@cuemarie
Copy link

Tested on an AT site with WP 6.3 and GB 16.4.0, and footnotes work on nested content now. Closing as resolved.

Markup on 2023-08-22 at 10:54:41

@cuemarie cuemarie added the [Closed] Resolved Issue is resolved. Use for issues that can be closed but did not have an explicit fix with a PR. label Aug 22, 2023
@gambuzino-wonder
Copy link

My Current version: 6.7.1 (the latest) and footnotes keep disappearing, randomly. Sometimes they save sometimes they vanish. 😮‍💨

@gambuzino-wonder
Copy link

gambuzino-wonder commented Dec 24, 2024

Workaround

It isn't pretty but it works.

  1. Make sure you have the settings to show WP custom fields.

  2. Scroll down and search the "footnotes" custom field ( if you inserted at the post it should be already visible and in use ).

  3. Insert a footnote into your text, right click and copy the footnote link ↵.

  4. Extract the footnote ID from the url. For e.g. for the this url https://yourwebsite.org/wp-admin/post.php?post=21849&action=edit#009557fc-eef8-4116-bfb7-ccaf257c5b1e-link the id is the number between # and -link. In the previous will be 009557fc-eef8-4116-bfb7-ccaf257c5b1e.

Image

  1. Use the following model to inject your footnote content and link:
    [{"content":"ContentGoesHere","id":"idGoesHere"}]
    E.g.: [{"content":"Roses are red but also of many colors.","id":"009557fc-eef8-4116-bfb7-ccaf257c5b1e"}]

  2. Inject the code at the value of the footnotes custom field (see image).

  3. For many footnotes per post use the following structure model:
    [{"content":"1ContentGoesHere","id":"1idGoesHere"},{"content":"2ContentGoesHere","id":"2idGoesHere"}]

  4. Save and refresh.

Until WP solves definitely 🤷‍♂️
Tell me if it worked for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Blocks Editor blocks, aka Gutenberg blocks, plugins, and extensions [Closed] Resolved Issue is resolved. Use for issues that can be closed but did not have an explicit fix with a PR. [Platform] Atomic [Platform] Simple [Pri] Normal Schedule for the next available opportuinity. [Status] Core Fix Needed A fix within the Core WordPress or Gutenberg project is required to resolve this issue. Triaged To be used when issues have been triaged. [Type] Bug
Projects
None yet
Development

No branches or pull requests

3 participants