Most Viewed Posts

  • Download Islamic Calendar 2014 in PDF! (69,372)
    [alert]You may be looking for: Islamic Calendar 2023 in PDF.[/alert] Alhamdulillah, the islamic calendar corresponding the gregorian calendar of 2014 is now available for download as PDF at Alhabib Web Service. As usual, you can view the calendar online or… <a href="https://blog.al-habib.info/2018/08/my-first-post-using-the-gutenberg-editor/" class="more-link">Continue Reading <span class="meta-nav">→</span></a>
  • The Life Span of Muslim Ummah is 1500 Years. Is it True? (45,866)
    Several people have expressed the same question regarding the life-span of Muslim Ummah. They wanted to know whether it is true that the muslim ummah will only reach 1500 years of age [based on islamic calendar?]. Below is an answer… <a href="https://blog.al-habib.info/2018/08/my-first-post-using-the-gutenberg-editor/" class="more-link">Continue Reading <span class="meta-nav">→</span></a>
  • Islamic Calendar 2010 Available for Download (20,316)
    In about two months from now, the islamic hijri year of 1430 will come to an end. Some of you may have wondered what would be the corresponding christian dates for islamic events of the year 1431 AH (anno hegira, after… <a href="https://blog.al-habib.info/2018/08/my-first-post-using-the-gutenberg-editor/" class="more-link">Continue Reading <span class="meta-nav">→</span></a>
Categories: How To

My First Post Using the Gutenberg Editor

You will not be as big as mountain in stature. So, be humble and submit to your Lord, Allah.

The goal of this new editor is to make adding rich content to WordPress simple and enjoyable. This whole post is composed of pieces of content—somewhat similar to LEGO bricks—that you can move around and interact with. Move your cursor around and you’ll notice the different blocks light up with outlines and arrows. Press the arrows to reposition blocks quickly, without fearing about losing things in the process of copying and pasting.

What you are reading now is a text block, the most basic block of all. The text block has its own controls to be moved freely around the post…

… like this one, which is right aligned.

Headings are separate blocks as well, which helps with the outline and organization of your content.

A Picture is worth a Thousand Words

Handling images and media with the utmost care is a primary focus of the new editor. Hopefully, you’ll find aspects of adding captions or going full-width with your pictures much easier and robust than before.

If your theme supports it, you’ll see the “wide” button on the image toolbar. Give it a try.

Try selecting and removing or editing the caption, now you don’t have to be careful about selecting the image or other text by mistake and ruining the presentation.

The Inserter Tool

Imagine everything that WordPress can do is available to you quickly and in the same place on the interface. No need to figure out HTML tags, classes, or remember complicated shortcode syntax. That’s the spirit behind the inserter—the (+) button you’ll see around the editor—which allows you to browse all available content blocks and add them into your post. Plugins and themes are able to register their own, opening up all sort of possibilities for rich editing and publishing.

Go give it a try, you may discover things WordPress can already add into your posts that you didn’t know about. Here’s a short list of what you can currently find there:

  • Text & Headings
  • Images & Videos
  • Galleries
  • Embeds, like YouTube, Tweets, or other WordPress posts.
  • Layout blocks, like Buttons, Hero Images, Separators, etc.
  • And Lists like this one of course 🙂

Visual Editing

A huge benefit of blocks is that you can edit them in place and manipulate your content directly. Instead of having fields for editing things like the source of a quote, or the text of a button, you can directly change the content. Try editing the following quote:

The editor will endeavour to create a new page and post building experience that makes writing rich posts effortless, and has “blocks” to make it easy what today might take shortcodes, custom HTML, or “mystery meat” embed discovery.

Matt Mullenweg, 2017

The information corresponding to the source of the quote is a separate text field, similar to captions under images, so the structure of the quote is protected even if you select, modify, or remove the source. It’s always easy to add it back.

Blocks can be anything you need. For instance, you may want to add a subdued quote as part of the composition of your text, or you may prefer to display a giant stylized one. All of these options are available in the inserter.

You can change the amount of columns in your galleries by dragging a slider in the block inspector in the sidebar.

Media Rich

If you combine the new wide and full-wide alignments with galleries, you can create a very media rich layout, very quickly:

Sure, the full-wide image can be pretty big. But sometimes the image is worth it.

The above is a gallery with just two images. It’s an easier way to create visually appealing layouts, without having to deal with floats. You can also easily convert the gallery back to individual images again, by using the block switcher.

Any block can opt into these alignments. The embed block has them also, and is responsive out of the box:

You can build any block you like, static or dynamic, decorative or plain. Here’s a pullquote block:

Code is Poetry

The WordPress community

I think I will like this new editor of WordPress. Gutenberg is cool.

Habib bin Hilal

Habib bin Hilal is Editor in Chief of this blog and manager of the website: Alhabib - Coloring with Islam.

Recent Posts

Exploring the Names and Origins of Jumadal Akhirah Across the Muslim World

In our previous post, we introduced the arrival of Jumadal Akhirah 1446 AH. This month,…

3 weeks ago

A Collection of Crescent Moon Photos of Jumadal Akhirah 1446 AH

As predicted from the crescent visibility map before, the crescent moon of 1 Jumadal Akhirah…

3 weeks ago

Jumadal Akhirah 1446 AH: A New Month Begins

As we journey through the Islamic calendar, the arrival of Jumadal Akhirah 1446 AH is…

4 weeks ago

Crescent Moon Photos for 1 Safar 1446 AH

The month of Safar is the second month in the islamic calendar or hijri calendar.…

5 months ago

Crescent Moon Photos of 1 Muharram 1446 AH

The islamic new year has come with the sighting of the new crescent moon that…

6 months ago

Collection of Crescent Moon Photos of 1 Dhulhijjah 1445 AH

The hilal sighting process, or observing the new moon marking the beginning of Dzulhijah, has…

7 months ago