Center a button (shortcode) on a WordPress page

Solved
theoask Posted messages 673 Registration date   Status Member Last intervention   -  
 enzo -
Hello,

How to center a plugin button inserted with a shortcode tag on a Wordpress page?

I’m using the Gutenberg editor of Wordpress 5.4 (the latest version)

Shortcode example: [maxbutton id="1" url="https://amzn.to/2H8kvqy" ]

Because the button is left-aligned on the page by default.

2 answers

  1. elgazar Posted messages 5776 Registration date   Status Member Last intervention   1 330
     
    Hello
    in the same way as a text, click on the section containing your button to display the options and choose the icon represented by horizontal lines

    --
    With a computer, we can do things more quickly than we would have needed to do without a computer.
    0
  2. enzo
     
    Hello,
    Did you use the Classic block?
    Is it placed between two centered paragraphs?

    You did not fix the tags on the page Siege gamer pas cher; you need to put the two buttons in the same centered paragraph.
    Use the classic block and switch to "Edit in HTML" mode.
    0