Title: Html Anchors Keep Changing
Last modified: November 15, 2019

---

# Html Anchors Keep Changing

 *  Resolved [tombo86](https://wordpress.org/support/users/tombo86/)
 * (@tombo86)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/html-anchors-keep-changing/)
 * 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](https://wordpress.org/support/users/bradbrownmagic/)
 * (@bradbrownmagic)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/html-anchors-keep-changing/#post-12139517)
 * 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](https://wordpress.org/support/users/rodicaelena/)
 * (@rodicaelena)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/html-anchors-keep-changing/#post-12151129)
 * 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](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.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/neve/4.2.3/screenshot.png)
 * Neve
 * [Support Threads](https://wordpress.org/support/theme/neve/)
 * [Active Topics](https://wordpress.org/support/theme/neve/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/neve/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/neve/reviews/)

## Tags

 * [changing](https://wordpress.org/support/topic-tag/changing/)
 * [IDs](https://wordpress.org/support/topic-tag/ids/)

 * 2 replies
 * 3 participants
 * Last reply from: [rodicaelena](https://wordpress.org/support/users/rodicaelena/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/html-anchors-keep-changing/#post-12151129)
 * Status: resolved