# Custom Block HTML ID

{% hint style="info" %}
This article is about the WordPress plugin GutenBricks, which allows you to create Gutenberg blocks using the Bricks Builder page builder in a no-code approach. Visit [**GutenBricks.com**](https://gutenbricks.com) for more information.
{% endhint %}

{% embed url="<https://youtu.be/JnREmjpIRCU>" %}

In case you want to add a custom unique ID to a block to create an anchor etc, you can enable `Block HTML ID,` this will bring up a field to enter a custom ID like the one below:

<figure><img src="https://115503993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVRpgq7lelxP9PFleE0QT%2Fuploads%2FJKKk3WhkTerMuVFhJkDb%2FScreenshot%202024-07-11%20at%2010.10.19%E2%80%AFAM.png?alt=media&#x26;token=37c70bb6-fc9a-4465-878a-42837c530832" alt="" width="297"><figcaption><p>This will add an ID <code>#about</code> to the block </p></figcaption></figure>

This will assign the ID to **`first element`** of the block. For eg, if you wrap the block in one parent element such as a section or container, the ID will be assigned to the parent.&#x20;

<figure><img src="https://115503993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVRpgq7lelxP9PFleE0QT%2Fuploads%2FAlFlszou7pEsOtecgiWx%2FScreenshot%202024-07-11%20at%2010.14.23%E2%80%AFAM.png?alt=media&#x26;token=2b08ffa0-8385-4b67-8df3-c9f3aa75ef9f" alt=""><figcaption></figcaption></figure>

### How to:

<figure><img src="https://115503993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVRpgq7lelxP9PFleE0QT%2Fuploads%2FGchf4khgR5iNCYD8V4Cs%2FScreenshot%202024-07-11%20at%2010.06.17%E2%80%AFAM.png?alt=media&#x26;token=ac7a5232-f5dd-40ae-a325-30df97d79cf3" alt="" width="375"><figcaption><p>Add <code>Block HTML ID</code> inside Block Setting Fields</p></figcaption></figure>

Inside Bricks Builder,

1. Open Settings ⚙️ (on the right top corner)&#x20;
2. Open Template Settings Tab
3. Open GUTENBRICKS:BLOCK Tab
4. Under EDITING section
5. Click Block Setting Fields to select **`Block HTML ID`**

If you have questions, please join our [Facebook Group](https://www.facebook.com/groups/wiredwp) or email us at <support@gutenbricks.com>
