In this tutorial, you’ll learn how to add two more alignment options for the image blocks in Gutenberg-ready WordPress themes.
By default, you can align images left, center and right. But you can extend this functionality with one line of code.
Simply add the line below to your
add_theme_support( 'align-wide' );
The code above will enable align wide and full-width options.
If you find this post useful, please let me know in the comments below.
Want to share this with your friends?
PS: make sure you check other WordPress tutorials, e.g. Split functions.php into multiple files in WordPress, load Google Fonts via functions.php in WordPress and download my plugin that improves your WordPress SEO & Performance.