Promo 1 - Get our lifetime membership, all themes, and updates forever for only 95 USD.
Promo 2 - Get a free pro theme when you host with us.

Using the Gutenberg editor alignwide for wide photos

Although this is a feature related to the new upcoming Gutenberg editor for WordPress, we started to implement some features into Blogg Pro. The “alignwide” class gives you the ability to insert a wide photograph into your content area when the content area is smaller in width. For example, this is from our live demo site:

blogg-pro-alignwide

As you can see, our photo (1170×520 pixels) is wider than our content, but it sits nicely between our paragraphs.

If you have the Gutenberg editor enabled (which is still in development by WordPress and in beta version), you can easily insert an image and use the block setting to align this image the way you see it above. However, we have included this capability into this theme.

Make Your Image Wide

To do this, simply upload and insert your photo into your content. Then, switch to the “Text/HTML” view of your editor (the classic WP editor, not Gutenberg) and add this class to your image:

alignwide

Your image code will show it like this then:

<figure class="alignwide"><img class="wp-image" src="https://www.the-path-to-your-photo.com/image.jpg" alt="My Wide Image" /><figcaption>

The class can be added to the container that wraps your image, or you can add it directly to the image src tag:

<img class="wp-image alignwide" src="https://www.the-path-to-your-photo.com/image.jpg" alt="My Wide Image" />