Complementor/Attachment file extension
Content / widget · Elementor module

Attachment File Extension Widget Plugin for Elementor

Show the extension of a Media Library file, such as “PDF”, optionally with its size, such as “PDF · 1.2 MB”, for download links.

Included in All AccessClassic Elementor widgetFrom $29 USD / year
Complementor / Attachment file extensionProduct preview
Text, style and layout controls inside Elementor
01 / Interactive demonstration

Try it

These are the actual published outputs of the widget for files from the Media Library.

02 / Inside WordPress

Attachment file extension controls in Elementor

Content sets the file source, the file, letters, dot, the wording with {ext} and {size}, text before and after, the empty text, the HTML tag and an icon. The Style tab covers typography, colours, surface, border, alignment, padding, radius and the icon.

03 / Website use cases

Where to use attachment file extension

Visitors want to know a download's type and size before they click, and hand-typed details go stale when files change. Attachment file extension shows “PDF” or “PDF · 1.2 MB” from the stored file, with the original upload's size, in capitals or small letters.

01

Download links

Show “PDF · 1.2 MB” beside each link.

02

Resource lists

Label files by type.

03

Media pages

Show file details on attachment pages.

04 / Installation and setup

How to add an attachment file extension in Elementor

Start with Complementor installed and your license connected. Enable this module in the WordPress library, then configure it in Elementor.

  1. Install Complementor, connect your license and enable Attachment file extension in the Complementor library.

  2. Choose the file, or the featured image in a template.

  3. Set the wording, such as {ext} · {size}.

  4. Style it, for example as a pill next to a link.

  5. Publish and check it on the live page.

05 / Content and style controls

Customize attachment file extension in Elementor

Configure the settings available for this module to suit the page you are building.

  • Extension from the stored file.

  • File size with {size}.

  • Capitals or small letters.

  • Optional leading dot.

  • Featured image and attachment pages.

  • Skips files of private posts.

06 / Choose the right approach

Attachment file extension and Elementor alternatives

Compare the existing Elementor workflow with this Complementor module before choosing your setup.

Typed details

Go stale when the file is replaced.

Attachment media type

Says the kind in words; this shows the extension and size.

07 / Requirements and compatibility

Attachment file extension compatibility with Elementor

WordPress 6.5+PHP 8.0+Elementor 3.25+
  • Requires Elementor; works without WooCommerce.
  • Shows the extension and size; it does not convert files.
  • Full-page caches keep the value until they are refreshed.

Complementor uses classic Elementor APIs. Atomic-native controls are not implemented. Check your theme, cache and integrations on a staging site before release.

08 / Common setup problems

Troubleshoot attachment file extension

Check these settings if the published page behaves differently from the editor.

Why is no size shown?

The file could not be read and no size was saved; the extension is shown alone.

Why does the size differ from my upload?

It is the original upload's size; WordPress also stores smaller copies.

Why is nothing shown?

No file is chosen, or it belongs to a draft or private post.

Can I show “.pdf”?

Yes. Choose small letters and turn on the dot.

09 / Frequently asked questions

Attachment file extension plugin questions

Does it need Elementor Pro?

No. It works with the free version of Elementor.

Can it reveal private files?

No. Files attached to drafts, private or password-protected posts are never shown on the live site.

Is the size exact?

It is rounded to one decimal place, as WordPress formats sizes.

Is it accessible?

Yes. It is ordinary text.

Does it work in post templates?

Yes. Choose the featured image of the current post, or the attachment page in media templates.

10 / Annual All Access subscription

Get attachment file extension with Complementor

This module is included with all 1007 current Complementor solutions. Choose your production website allowance; every plan includes the same modules.

All Access · 1 site

One website

$29USD / year
  • All 1007 current modules
  • Plugin downloads and updates for one year
  • New releases during the paid term
  • Product support
Choose 1 site ↗

Renews at $29 USD each year.

All Access · 5 sites

A few websites

$49USD / year
  • All 1007 current modules
  • Plugin downloads and updates for one year
  • New releases during the paid term
  • Product support
Choose 5 sites ↗

Renews at $49 USD each year.

All Access · 25 sites

More websites

$99USD / year
  • All 1007 current modules
  • Plugin downloads and updates for one year
  • New releases during the paid term
  • Product support
Choose 25 sites ↗

Renews at $99 USD each year.

Applicable taxes extra. Annual subscriptions renew automatically unless canceled in your customer account. Elementor Pro is required for Exclude current post. Read the terms and 14-day technical-issue refund policy.