Skip to content

Instantly share code, notes, and snippets.

@jessestu
Created February 28, 2019 22:43
Show Gist options
  • Save jessestu/56c5f9b85866c5ec55a6d2d2cf47082f to your computer and use it in GitHub Desktop.
Save jessestu/56c5f9b85866c5ec55a6d2d2cf47082f to your computer and use it in GitHub Desktop.

Please go to My Site → Customize → CSS (or Additional CSS), then add all of the following code to the bottom of that window.


/* This CSS fixes the theme issue with centered image blocks.
* 10230156-hc (jw)
*/
.post-content .aligncenter {
  text-align: center;
}
.wp-block-image .aligncenter>figcaption {
  display: block;
}

Tip: keep the /* comment */ in the code to later know what this code does.

Example of where to add the CSS

If this image fails to load, please see it at: http://cld.wthms.co/av2gwv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment