Hi @tembabevo! Thanks for letting us know. We recently changed the default alignment of button blocks from center to left. Keeping old button blocks center-aligned in the editor has been done, but we forgot to do the same thing in the frontend.
Here’s what you can do to fix it.
- Download this file and save it under the filename of defaults.php. Also, download this file and save it under the filename of block.php.
- Navigate to your WordPress plugins folder and get to the folder for Ultimate Blocks.
- Go to the src folder.
- Inside the folder, look for a file named defaults.php, and rename it into something else (just to make sure you still have the old file when the new one doesn’t work).
- Paste the defaults.php file you downloaded into the folder.
- Repeat steps 3-5, this time going to src/blocks/button/ and replacing the existing block.php with the one you just downloaded.
Please let us know how it goes.
I did not work! Sites code got broken when I tried your method. Although not all posts were showing error, but still, I had undo the changes and use old files again to correct code error.
There might be a case of other them or plugin code clashing with Ultimate blocks. For example: This post (https://icemakercage.com/best-undercounter-ice-machines/) was showing error whereas this one (https://icemakercage.com/best-ice-makers/) was perfect, buttons were aligned center. I could not find what’s the issue, so i deleted the new files and renamed old files to original.
Screenshot: https://imgur.com/a/vRFdPMp