Pattern Importer
Paste in a pattern and download images in one go.
Pattern Importer
![](https://docs.dlxplugins.com/~gitbook/image?url=https%3A%2F%2F664464343-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtmNb8RTbrDLZUVTlqDNW%252Fuploads%252FJzsj1DEYLfQQO7dQ0P62%252Fdlxplugins-1701552563072-1x.webp%3Falt%3Dmedia%26token%3D1598d5be-bb8a-47e5-a603-bc1db0d9f7b8&width=768&dpr=4&quality=100&sign=fe09e229&sv=1)
The Pattern Importer block allows you to paste and display any block pattern code in the block editor. It is specifically designed for GenerateBlocks, but it can also accommodate other patterns.
Any remote images found in the pattern will be downloaded locally, and the image source will be updated.
Why download remote images? Using remote images is not ideal because the images are not in the site owner's control and can't be compressed or cached. Remote images can also be deleted or modified by a third party. Hosting the images locally on your site prevents any of these conflicts.
In addition to gathering the remote images, the Pattern Importer also replaces the GenerateBlocks uniqueId
attributes to prevent style conflicts. If you've ever duplicated a block and had style conflicts, this will alleviate any matching unique IDs.
Adding the Pattern Inserter Block
You can find the Pattern Inserter block where you can find the other GenerateBlock blocks, which is grouped in a GenerateBlocks category.
![](https://docs.dlxplugins.com/~gitbook/image?url=https%3A%2F%2F664464343-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtmNb8RTbrDLZUVTlqDNW%252Fuploads%252FDWpvJJfcF7spjqGNPSgH%252Fdlxplugins-1701597117864-1x.webp%3Falt%3Dmedia%26token%3D0c484152-27eb-4049-b01a-bbb2b6c2628a&width=768&dpr=4&quality=100&sign=cfedd2d2&sv=1)
To copy a pattern, select the blocks that are part of the pattern, click on the vertical ellipses symbol, and click "Copy blocks." This will copy the block pattern code to your clipboard.
![](https://docs.dlxplugins.com/~gitbook/image?url=https%3A%2F%2F664464343-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtmNb8RTbrDLZUVTlqDNW%252Fuploads%252FrJ1eUVsA2a8NO46HCE6p%252Fdlxplugins-1701597227732-1x.webp%3Falt%3Dmedia%26token%3D0329eb25-07ee-45c5-8033-9a7f9e0def48&width=768&dpr=4&quality=100&sign=d3e3bfdb&sv=1)
You can now paste the pattern code into the Pattern Inserter block. If there are a lot of images, this may take a few minutes to finish. Once imported, the Pattern Inserter block is removed and replaced with the converted pattern.
Last updated