كيفية استخدام كتلة الملف في ووردبريس (3 خطوات سهلة)

The file block is another core block used to easily upload and share files directly to your WordPress website. It is a simple block that lets you add downloadable files to your posts or pages without any skills or knowledge of web development.

Today, in this tutorial, we will learn how to use the file block in WordPress and its features that will help you use it properly. But first, we will talk a little about the WordPress file block.

What is the File Block in WordPress?

The File Block is a core block that lets you upload and display files for users to view or download. Using the block, you can add PDFs, word documents, spreadsheets, or any other file types.

Again, the block makes it convenient to embed file links easily with optional download buttons, ensuring users can easily access or preview the file with a single click.

File Block المميزات الرئيسية:

  • Showcase any file type
  • Embed Link to the File
  • Add Download Button
  • Define Link Color
  • Add Background color to the links

إنشاء جداول جميلة
مع محرر الكتل

File Block Toolbar Features

The File Block toolbar provides essential tools to customize and optimize the block’s appearance:

  1. File Transform: The file transform button lets you transform your file block into video, columns, details, groups, etc.
  2. يجر: يتيح لك خيار السحب سحب أي كتلة معينة وإفلاتها في أي مكان في المحرر.
  3. Move Handles: يتيح لك المقبض المتحرك تحريك الكتلة لأعلى ولأسفل.
  4. محاذاة: The align option lets you set the File alignment to None, Wide Width, Full Width, Left, Center, and Right.
  5. عريض: You can put the file name you displayed in bold using the option.
  6. مائل: It lets you italicize the file name you displayed.
  7. Block Options: The block option features formatting options such as highlight, inline code, image, strikethrough, etc.
  8. يستبدل: Replace allows you to upload or choose a file from the PC or media library instead of the existing file.
  9. Copy URL: It simply copies the URL to the clipboard.
  10. المزيد من الخيارات: More options feature other useful features for the editor, such as copy, duplicate, create pattern, etc.

How to Use the File Block in WordPress

Adding and using the file block in WordPress is super easy when you follow our tutorial.

Step 1: Insert the File Block

To insert the file block, go to your post where you want to add the file block and click Go to your post, click the Add Block (“+")" إضافة كتلة رمز (1)، يكتب "File"في مربع البحث" (2)، ثم انقر فوق "File(3).

How to use the file block in WordPress

Step 2: Insert Your File

After editing the insert file block, it will ask you to insert your file using the Upload and Media library option.

How to Insert File Via Upload Option

How to Insert File Via Media Library Option

Click the Media Library button, select the file, and click the Select button to insert the file into the editor.

Step 3: Customization Options

More block settings can be accessed from the top right side. To access the block settings, navigate إعدادات (1> حاجز (2) > الإعدادات (3).

In the image, you can see the option to enable “Open in new tab,” which will open your tab in a new tab. If it is deactivated, it will be opened in the same tab. There is also an option of “Showing download Button” to display or not display the download button.

In the block settings, you will find the option “LINK TO,” which will open the drop-down menu. There, you will see the options below:

  1. Media File: If you select this option, it will open the attachment directly in a full-screen lightbox.
  2. Attachment Page: If you select this option, the attachment will be opened on the same page without full-screen.

There are also styling options on the side of the Settings option.

  1. لون: The color option lets you change your File block’s background color and add link color.
  2. أبعاد: The Dimensions option allows you to modify the margin and padding.
  3. حدود: Using this feature, you can add a border, border color, and border radius to your file block.

After all of the customization, you must save or publish your post.

So that’s how you use the File Block in WordPress.


الأفكار النهائية!

The file block is a handy tool that simplifies the file-sharing option on your WordPress website. By following these steps, you can effectively use the block to add value to your content.

I hope the tutorial has helped you understand the block better. Let me know your thoughts in the comment section below. Also, share the post on your social media and let your folks know about it.

اقرأ المزيد!



فريق Tableberg