• Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Equalize Digital Home

Equalize Digital

Website Accessibility Consulting, Training, and Development

  • My Account
  • Swag Shop
  • Checkout
  • Services
    • Accessibility Audits
    • User Testing
    • Accessibility Remediation
    • VPAT & ACR Preparation
    • Accessibility Monitoring
    • Web Accessibility Training
    • Accessibility for Agencies
  • Accessibility Checker
    • Overview
    • Features
    • Pricing
    • Documentation
    • Support
    • Buy Now
  • Company
    • About Us
    • Our Team
    • Industry Expertise
    • Accessibility Statement
    • Contact Sales
    • Become An Affiliate
  • Learn
    • Online Courses
    • Accessibility Meetup
    • Articles & Resources
    • Accessibility Craft Podcast
    • Upcoming Events
    • Office Hours
    • Custom Accessibility Training
    • Global Accessibility Awareness Day
  • Contact Sales
  • My Account
  • Checkout
Home / Accessibility Checker / Add File Size & Type To Links (Pro)

Add File Size & Type To Links (Pro)

This fix is only available in paid versions of Accessibility Checker.

U.S. Web Design System (USWDS) and other accessibility guidelines worldwide require that links to documents warn users about the file type and size in the text of the link. This notifies users before clicking the link that it doesn’t go to a web page and may, instead, trigger a download.

If you have a large number of documents on your WordPress site, adding these warnings one by one can be very time-consuming. This article explains how to automatically add file type and size warnings to all document links on your WordPress site with just the click of a button.

How to Display File Type and Size in Links to Documents in WordPress

If you want your website to include the file type and size of linked documents in the anchor text, you can have this information automatically inserted into links (no manual content editing) using the WordPress Accessibility Checker plugin.

Step 1

Click into the Accessibility Checker plugin settings in your WordPress dashboard (you must be logged in with an administrator account to access these settings).

Arrow pointing to the Settings page in the WordPress admin menu, which can be found under the Accessibility Checker top-level page.

Step 2

Go to the “Fixes” tab in the Settings Tabs navigation.

Arrow pointing to the Fixes page in the Settings tab navigation below the Accessibility Checker Settings H1.

Step 3

Check the box for Add File Size & Type To Links, then scroll to the bottom of the page and click the “Save Changes” button.

Checkbox labeled:  Add the file size and type to linked files that may trigger a download.

Note: Automated accessibility fixes use JavaScript or other methods to modify how your website functions. Occasionally, a WordPress theme or extension may conflict with or prevent our fixes from working as expected. We recommend testing these fixes on a local or staging copy of your website first.

Not seeing the fix?

The Add File Size & Type To Links accessibility fix should start working immediately; however, if you don’t see the fix, it could be because you’re seeing a cached version of your website. Try clearing the cache in any caching plugins and on your hosting account, then look at your site in an incognito window to confirm the fix worked.

Note: Turning on a fix will not instantly remove related issues from Accessibility Checker reports. After turning on a fix, you can clear issues from reports by running a full site scan in Accessibility Checker Pro or by saving any individual post/page to trigger a rescan of that post/page only.

What The Fix Does

When enabled, the Add File Size & Type To Links fix automatically scans your content for any links pointing to downloadable files (based on file extensions). When a link to a document is found, Accessibility Checker updates the visible link text to display the file type and, when possible, the file size, following the USWDS format for links to non-HTML content.

The USWDS format is [FILE_TYPE, SIZE] with square brackets, uppercase for the file type, and a comma for the separator.

Files hosted on your site

For files hosted on your WordPress site, both the file type and size are added to the link text. Currently, the size is available in MB or KB format. In the future, support will be added for showing page counts.

Example of a linked PDF hosted on-site:

Example link about finding correct shoe size. Link text says: Check out our sizing guide [PDF, 559.99 KB]

Files hosted on a different website

If you link to files that are not hosted on your website, the size information will not be available, and Accessibility Checker will only be able to add the file type to your link text.

This is an example of a link to a document hosted on a different website:

Example link to document hosted on the NYS DOH website. The link text only includes the file type (DOCX) and no size information.

If you are concerned with meeting the U.S. Web Design System formatting for linked files, we recommend uploading them to your WordPress website rather than linking to them on other websites. This will allow Accessibility Checker to determine and display the file size.

Linking to documents you host is also a good practice to prevent possible broken links that would result if the website owner moves or deletes the document.

Impact on Accessibility

Providing precise details about file types and sizes helps improve your website’s accessibility and usability. Many users, particularly those with cognitive disabilities or those relying on assistive technology, benefit from knowing the type of file being linked to before they click on links. This helps set clear expectations, reduces confusion, and can prevent frustration when unexpected file types or large downloads are encountered.

Knowing the size of a file before downloading it can help users with slower internet connections or data limits make informed decisions and potentially avoid costly or time-consuming downloads.

Primary Sidebar

Equalize Digital Accessibility Checker. Start making your WordPress Website Accessible Today. Get Accessibility Checker Now.

Frequently Asked Questions

  • How to Install & Activate Accessibility Checker
  • Getting Started Quick Guide
  • Why Do We Say 100% Passed Tests, Not 100% Accessible?
  • Manual Accessibility Testing: How You Can Check Website Accessibility
  • When and How to Ignore Accessibility Errors or Warnings
  • What to do if There are Accessibility Errors in Your Theme
  • What to do if a Plugin You’re Using has Accessibility Errors
  • How to Get Support for Accessibility Checker
  • Can I Hire Equalize Digital to Fix Accessibility Issues on My Website?
  • Additional Resources for Learning About Accessibility
  • How to Test Accessibility Checker for Conflicts with Themes or Plugins
  • What Does “Unlimited Dev Sites” mean?
  • Is there an Accessibility Conformance Report (ACR) or VPAT available for Accessibility Checker?
  • How to Get the Audit History Plugin – Legacy Customer Instructions
  • How does Accessibility Checker align with WCAG?
  • What to do if Accessibility Checker is not Scanning Your Site
  • Known Conflicts
  • Ensuring Accessibility Checker Fixes Work with JavaScript Optimization Plugins

Rule Documentation

  • A Slider is Present
  • A Video is Present
  • Ambiguous Anchor Text
  • ARIA Hidden
  • Blinking or Scrolling Content
  • Broken ARIA Reference
  • Broken Skip or Anchor Link
  • Duplicate Alternative Text
  • Duplicate Form Label
  • Empty Button
  • Empty Heading Tag
  • Empty Link
  • Empty or Missing Form Label
  • Empty or Missing Table Header
  • Empty Paragraph Tag
  • iFrame Missing Title
  • Image Animated GIF
  • Image Empty Alternative Text
  • Image Long Alternative Text
  • Image Map Missing Alternative Text
  • Image Missing Alternative Text
  • Improper Use of Link
  • Incorrect Heading Order
  • Insufficient Color Contrast
  • Link Opens New Window or Tab
  • Link to MS Office File
  • Link to Non-HTML File
  • Link to PDF
  • Linked Image Missing or Empty Alternative Text
  • Long Description Invalid
  • Low-quality Alternative Text
  • Missing Language Declaration
  • Missing Subheadings
  • Missing Title
  • Missing Transcript
  • Possible Heading
  • Readability & Simplified Summary
  • Tab Order Modified
  • Text Justified
  • Text Too Small
  • Underlined Text
  • Zooming and Scaling Disabled

Easier, Faster Accessibility Testing

Equalize Digital Accessibility Checker gives you real-time accessibility feedback in the WordPress editor. Learn accessibility and make fixes earlier in the dev and content creation process. Full-site accessibility scanning without the per page fees.

Get Accessibility Checker

Footer

Equalize Digital Websites for Everyone

Your WordPress accessibility team. Accessibility plugins, rapid audits, and consulting to help you make your website usable by people of all abilities.

  • Facebook
  • GitHub
  • LinkedIn
  • Twitter
  • YouTube

Company

  • About Equalize Digital
  • WordPress Accessibility Meetup
  • Accessibility Statement
  • Blog
  • Events
  • Contact Us

Services

  • Accessibility Audits
  • User Testing
  • Remediation
  • Ongoing Monitoring
  • VPAT & ACR Preparation
  • Accessibility Training
  • For Agencies
  • Website Development

Accessibility Checker

  • Features
  • Pricing
  • Documentation
  • How to Get Support
  • My Account
  • Affiliate Dashboard
  • Become an Affiliate

© 2025 Equalize Digital · Privacy Policy · Terms of Service · Software Terms & Refund Policy

International Association of Accessibility Professionals member