# \[solved\] How to add core/buttons with core/button as a Block Inner Content Template?

**URL:** <https://forum.pinegrow.com/t/solved-how-to-add-core-buttons-with-core-button-as-a-block-inner-content-template/8922>\
**Category:** Blocks\
**Tags:** wordpress\
**Created:** [May 22, 2024, 12:26pm UTC](https://forum.pinegrow.com/t/solved-how-to-add-core-buttons-with-core-button-as-a-block-inner-content-template/8922 "2024-05-22T12:26:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MichelyWeb](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/michelyweb/32/6652_2.png) [@MichelyWeb](https://forum.pinegrow.com/u/MichelyWeb)\
**Post date:** [May 22, 2024, 12:26pm UTC](https://forum.pinegrow.com/t/solved-how-to-add-core-buttons-with-core-button-as-a-block-inner-content-template/8922/1 "2024-05-22T12:26:01Z")

</div>

I’d like to add a Group of Buttons `core/buttons` to an Inner Block template but can’t get it to work.  
I have to add CSS Classes to the inner `core/button` so it’s not enought just to add `core/buttons` without the specific buttons.

This is not working:

```auto
[
['${this}/section-intro1',{}],
['core/paragraph', {}],
['core/buttons', {['core/button', { 'className' : 'btn\u002d\u002dprimary btn\u002d\u002doutline' }]}]
]

```

---

<div class="post-metadata">

**Author:** ![Zahra](https://avatars.discourse-cdn.com/v4/letter/z/aeb1de/32.png) [@Zahra](https://forum.pinegrow.com/u/Zahra)\
**Post date:** [May 25, 2024, 3:37pm UTC](https://forum.pinegrow.com/t/solved-how-to-add-core-buttons-with-core-button-as-a-block-inner-content-template/8922/2 "2024-05-25T15:37:07Z")

</div>

> [@MichelyWeb](#):
>
> I’d like to add a Group of Buttons `core/buttons` to an Inner Block template but can’t get it to work.  
> I have to add CSS Classes to the inner `core/button` so it’s not enought just to add `core/buttons` without the specific buttons.
> 
> This is not working:
> 
> ```auto
> 
> ```

To add a Group of Buttons `core/buttons` to an Inner Block template with specific CSS classes for each button, you need to ensure you’re defining the `core/button` blocks within the `core/buttons` block correctly in your template. Here’s a basic example:  
{  
“name”: “my-template”,  
“title”: “My Template”,  
“innerBlocks”: [  
[“core/buttons”, {}, [  
[“core/button”, { “className”: “my-custom-class-1” }],  
[“core/button”, { “className”: “my-custom-class-2” }]  
]]  
]  
}

Ensure each `core/button` has the appropriate CSS class in the attributes. Adjust the class names as needed for your specific use case.  
I hope it will helps you [💫](https://3dversedesign.com/)

---

<div class="post-metadata">

**Author:** ![MichelyWeb](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/michelyweb/32/6652_2.png) [@MichelyWeb](https://forum.pinegrow.com/u/MichelyWeb)\
**Post date:** [May 26, 2024, 5:18pm UTC](https://forum.pinegrow.com/t/solved-how-to-add-core-buttons-with-core-button-as-a-block-inner-content-template/8922/3 "2024-05-26T17:18:04Z")

</div>

Thank you, this is working.
