• Resolved tombo86

    (@tombo86)


    Hello,

    I am new to WordPress and am using the Neve – Gutenberg theme. I am finding that the HTML anchors (ids) of the sections change quite frequently, as I edit and save a page. They are auto-generated, and cannot be edited, at least in the Block Properties sidebar.

    If I create a link to a section, the link becomes invalid once the id changes.

    I also tried creating my own id on an advanced heading block, by choosing to edit it as HTML. However, when I do, I immediately get a warning that “this block contains unexpected or invalid content.” I guess Neve expects all element ids to be named the way it wants them to be.

    I can’t find any information on the web about this issue, so I am not sure if it is related to Neve, Gutenberg, WordPress, or something unique about my site. Any help is much appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Brad Brown

    (@bradbrownmagic)

    I’m having the same problem, and came here looking for a solution. (At least I know I’m not alone.)

    I’m editing the theme in Gutenberg. WP, PHP and Neve (and all other plugins) are all up to date. Every time I save the page, all the anchors change, breaking all my links.

    For now, I’m working around it by inserting some custom HTML with my own anchor, but ideally the theme should support ID’s that don’t change for use as anchors.

    For anyone who needs a workaround, here’s what I’m doing. At the top of the section you want to link to, insert a custom HTML block and enter:

    <div id="about"></div>

    Change the ID to whatever you want.

    rodicaelena

    (@rodicaelena)

    Hi,

    Thank you for letting us know about that. This thing is related to the Otter Blocks plugin. I’ve added it here so you can follow it https://github.com/Codeinwp/otter-blocks/issues/93

    Regards,
    Rodica

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Html Anchors Keep Changing’ is closed to new replies.