• Resolved Gyurmey

    (@gyurmey)


    Hi, I was able to add an ID for template parts before, but in the latest GB versions it is no longer possible. Is it a mistake, an oversight or a conscious change?

    It is absolutely necessary for me.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi there!

    I was checking further to try reproducing it, but it is not clear to me if maybe you were referring to one of the blocks inside the template part instead of the template part itself. Can you confirm that?

    https://d.pr/i/nRYbfx
    Full Size: https://d.pr/i/nRYbfx

    If it is not what you meant, can you share a full-page screenshot using the version 16.1.2, then in the same place and share a new screenshot with the working version?

    Thread Starter Gyurmey

    (@gyurmey)

    Hi,
    I mean exactly the Template part. Please see the screenshot.

    Thank you! Can you share exactly the version where you had it working as expected?

    I tried even with the core WordPress version (without having the Gutenberg) and it showed the same way.

    Can you please go to a site where you can edit it, then WP Admin > Tools > Site Health, and click “Copy site info to clipboard”? Then please post it here.

    Thread Starter Gyurmey

    (@gyurmey)

    Sure! The last version of Gutenberg was 16.0.0 when HTML anchor was available.

    [Mod note: Removed the link as it is a public forum.]

    • This reply was modified 1 year, 8 months ago by Felipe Santos. Reason: Removed the link

    Hi again,

    Thank you for the clarifying the version!

    I see your point now, and I confirmed now what happened — it was a feature that had to be reverted.

    In general, it was an experiment, but it brought issues with other parts of the editor (especially with static blocks).

    You can see more here: https://github.com/WordPress/gutenberg/pull/51288

    Something that I expect to work really close to what you need is to select the group inside the template part and add the HTML anchor. Have you tried that? I think it would be really close to that.

    https://d.pr/i/7JXgPe
    Full Size: https://d.pr/i/7JXgPe

    Do you see any specific use case that wouldn’t consider this option?

    PS: I know you had good intentions, but please don’t add direct link logins (even for staging/testing sites), as it is a public forum. ??

    Thread Starter Gyurmey

    (@gyurmey)

    Hi!

    Thanks for the clarification ??

    Due to the nature of my websites, I need the ID in the top-level block, so for now I’m solving this with the Attributes for Blocks plugin. Besides, I avoid divitis as much as I can.

    Regards, kindness!

    • This reply was modified 1 year, 8 months ago by Gyurmey.
    Moderator jordesign

    (@jordesign)

    Thank @gyurmey – that sounds like a good workaround for now. That being the case I’m going to close this thread as resolved. Best of luck with it all.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Missing HTML ANCHOR field for template parts’ is closed to new replies.