LogoLogo
GB Hacks HomeDLX Plugins
GB Extras
GB Extras
  • GB Extras
  • Getting Started
    • Installing the Plugin
    • Finding the Plugin's Settings
  • Features
    • Pattern Importer
    • Set the Headline Block as the Default Block
    • Add Adobe Fonts to Typography Options
    • Add Styles to Post Types
    • Wrap Multiple Blocks in a Container
    • Transform Group Blocks to Containers
    • Block Editor Commands
    • Generate New Unique IDs for a Block
  • Quick Links
    • DLX Plugins Home
    • GB Extras Home
    • Support
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. Features

Generate New Unique IDs for a Block

Generate new unique IDs for a copied block.

PreviousBlock Editor Commands

Last updated 1 year ago

Was this helpful?

For a single block, if you need to reset the unique IDs, you can do so in the block's context menu.

Why generate new Unique IDs? GenerateBlocks uses the unique ID attribute of its blocks to do style targeting. If you copy/duplicate a block, sometimes the old unique ID carries over, and modifying one block changes the other. With an updated unique ID, the block can be style-independent of other block styles.

When generating new Unique IDs, the conversion works recursively, so any child blocks will also have their unique IDs reset also.

If you need to change the Unique IDs for a group of blocks, wrapping those in a Container block and generating the new Unique IDs for the Container block is recommended.

Generate New Unique IDs option