Common
Getting Started
Updates
Writing & Editing
Categories & Taxonomies
Editor Blocks
How To’s
Features
Translations
JetPack
3rd Party API
Troubleshooting
Development
About The Theme

File Block

The file block allows you to drop a download link to document files right in your website.

To add a file, click on the Add Block button and select the File block. Alternatively, you can start typing /file in a new paragraph block, then press enter.

Use the slash command /file to insert a file block

Detailed instructions on adding blocks can be found here.

Block Interface

Each block comes with unique toolbar icons and specific user controls that allow you to manipulate the block right in the editor.

Adding Files

Upon adding the file block, you have two options to chose from, Upload and Media Library. The upload button allows you to upload a new downloadable from your device and media library allows you to select a file you’ve already uploaded to your site’s media library.

Edit File

This is another option in the file block’s toolbar. Clicking on the pencil icon will enable you to select a new downloadable file for your block. You may use this if you need to replace the already existing document in your file block.

Alignment

A block-specific toolbar will appear whenever you select the file block. Three of the options are for the block’s alignment, right, center, and left. Choosing the right or left will allow you to place another block alongside the file block moreover picking center will return the block to its default, taking up the full width of the post or page content.

If you wish for the file block to be emphasized on the page, the Wide and Full-Width options will expand the download section beyond the bounding column of the page. These two options are exclusively available within the Conj - eCommerce WordPress Theme which supports these alignments in any fluid width page template.

In addition to the options found in the block’s toolbar, you may locate the block specific settings in the editor sidebar panel. Clicking on the cog icon next to the publish button will toggle the visibility of this panel.

The file block settings can be found in the sidebar

As you can see, the file block offers text link settings, download button settings, and advanced options.

You can choose whether to link to the media file directly or a separate attachment page. These two options can be opened in a new page if you wish not to have the user navigate away from the original page or source.

Download Button Settings

As you may have already noticed the file block comes with a download button that can be toggled on and off from the block options panel.

By toggling the download button settings off, the file name will appear hyperlinked on the live site.

Advanced

The advanced tab lets you add a CSS class to your block, allowing you to write custom CSS and apply styles to the block as you see fit.