Title: Button Alignment Issue after Update
Last modified: February 19, 2021

---

# Button Alignment Issue after Update

 *  Resolved [tembabevo](https://wordpress.org/support/users/tembabevo/)
 * (@tembabevo)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/button-alignment-issue-after-update/)
 * After the last update, all the buttons on of my website aligned left automatically.
 * Problem screenshot: [https://imgur.com/a/oYZMRSq](https://imgur.com/a/oYZMRSq)
 * Sample page: [https://icemakercage.com/best-ice-makers/](https://icemakercage.com/best-ice-makers/)
 * All the pages where I used ULTIMATE BLOCKS Buttons before the update has the 
   same issue.
 * Please provide an urgent solution to this problem as changing all the buttons
   alignment is not easy as I have edit all the posts.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Contributor [Alexis Pandaan](https://wordpress.org/support/users/alexius08/)
 * (@alexius08)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/button-alignment-issue-after-update/#post-14076817)
 * Hi [@tembabevo](https://wordpress.org/support/users/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.
    1. [Download this file and save it under the filename of defaults.php](https://github.com/Ultimate-Blocks/Ultimate-Blocks/blob/e212fd285c1728dcf1a938a2862877876a249a6e/src/defaults.php).
       Also, [download this file and save it under the filename of block.php](https://github.com/Ultimate-Blocks/Ultimate-Blocks/blob/e212fd285c1728dcf1a938a2862877876a249a6e/src/blocks/button/block.php).
    2. Navigate to your WordPress plugins folder and get to the folder for Ultimate
       Blocks.
    3. Go to the src folder.
    4. 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).
    5. Paste the defaults.php file you downloaded into the folder.
    6. 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.
 *  Thread Starter [tembabevo](https://wordpress.org/support/users/tembabevo/)
 * (@tembabevo)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/button-alignment-issue-after-update/#post-14077408)
 * 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/](https://icemakercage.com/best-undercounter-ice-machines/))
   was showing error whereas this one ([https://icemakercage.com/best-ice-makers/](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](https://imgur.com/a/vRFdPMp)

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Button Alignment Issue after Update’ is closed to new replies.

 * ![](https://ps.w.org/ultimate-blocks/assets/icon-256x256.png?rev=2966061)
 * [Ultimate Blocks – 25+ Gutenberg Blocks for Block Editor](https://wordpress.org/plugins/ultimate-blocks/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-blocks/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-blocks/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-blocks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-blocks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-blocks/reviews/)

## Tags

 * [button](https://wordpress.org/support/topic-tag/button/)

 * 2 replies
 * 2 participants
 * Last reply from: [tembabevo](https://wordpress.org/support/users/tembabevo/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/button-alignment-issue-after-update/#post-14077408)
 * Status: resolved