Josh Collinsworth 3/16/2019

Adding Gutenberg Full- and Wide-Width Image Support to Your WordPress Theme

Read Original

This technical tutorial explains how to add support for Gutenberg's wide and full-width image alignment options to a WordPress theme. It covers adding the necessary PHP code (`add_theme_support('align-wide')`) and provides a clever CSS technique using viewport units (`vw`) and `calc()` to make images break out of their container and span the screen.

Adding Gutenberg Full- and Wide-Width Image Support to Your WordPress Theme

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

1
The Beautiful Web
Jens Oliver Meiert 2 votes
3
LLM Use in the Python Source Code
Miguel Grinberg 1 votes
4
Wagon’s algorithm in Python
John D. Cook 1 votes