Upload pdf file in Wordpress 5.0 with Gutenberg.

In the previous versions of Wordpress, we had the option to add files with Add Media button. But with the introduction of Gutenberg editor, the same button is missing. So now how do we achieve that with the new editor. Here is the solution.

With Gutenberg comes the blocks and with blocks, you can insert, rearrange, and style multimedia content with very little technical knowledge. Instead of using custom code, you can add a block and focus on your content.

To add a file, click on add block and select from the numerous options. There are two ways to add a file as shown in the image below:

Gutenberg - upload file


Click on + sign to open the options:
Gutenberg - upload file

 Or click the file icon at the bottom:
Gutenberg - upload file


Gutenberg - upload file

Comments

Popular posts from this blog

Solution to Moodle Error: Coding error detected, it must be fixed by a programmer: Failed to unserialise data from file. Either failed to read, or failed to write.

ACTION_FAILED:OU_INVALID: Solution for GoogleApps bulk user upload issue, username@domainname.com:ACTION_FAILED:OU_INVALID. This error is because you have not specified the Org Unit Path properly.

(Solved) (Fixed )MariaDB Unmet Dependencies on Ubuntu 20.04.