• Is there a way to add a button inside a table that I create with the WordPress Block Editor?
    I added a “table block” and then created a “button block”. I tried to drag and drop the button into the table but it won’t work. I also tried to copy and past it into the table but that was also unsuccessful.

Viewing 1 replies (of 1 total)
  • Hi there,

    > Is there a way to add a button inside a table that I create with the WordPress Block Editor?

    It’s not possible to add a block inside the table block. The best alternative would be to use the columns block which allows you to add blocks inside the columns you create as shown in this short video.

    With the Table Block, you can only add other items such as buttons if you are using custom code. This would require you to be comfortable with code, you can edit the page using the code editor.

    Once you are able to see the table’s code you can add a button in between the targetted <tr</tr>. An example code for a button would be <a href="add your link here" class="button">Name of Button </a>

    The button will look very plain but you can customise it using CSS, below is an example of that:

    a.button {
        -webkit-appearance: button;
        -moz-appearance: button;
        appearance: button;
    
        text-decoration: none;
        color: initial;
    }
Viewing 1 replies (of 1 total)

The topic ‘How to add a button inside a table’ is closed to new replies.