Complementor/Attachment parent link
Navigation / widget · Elementor module

Attachment Parent Link Plugin for Elementor

Link a file from the Media Library back to the page or post it was uploaded to, such as "Back to Beginner watercolour course".

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

Links from real files to their pages

These are the actual published outputs of the widget with files from a sample site: a course PDF, a button-style link, an audio clip linked to its guide, and the fallback for an unattached image.

02 / Inside WordPress

Attachment parent link controls in Elementor

Content › Source uses the current attachment page or a file picked from the Media Library. Behaviour sets the fallback text for files with no public page and can open the link in a new tab. Display sets the link text, with {title} for the page title, and an optional icon. The Style tab covers underline, alignment, typography, colours, Normal, Hover and Focus states, border, radius and padding, icon position, size and gap, and the fallback text.

03 / Website use cases

Where to use attachment parent link

Files in the Media Library remember the page or post they were uploaded to, but visitors who reach a file listing or download page have no way back to that page. Attachment parent link reads the file's parent and links to it, only when that page is published and public, with your own text and a fallback for files that belong to no page.

01

Download pages

Next to a PDF, link back to the course or article it belongs to.

02

Media and press pages

Show where each image or audio clip was published.

03

Attachment templates

On sites with attachment pages turned on, add a Back to link above the file.

04 / Installation and setup

How to link a file back to its page 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 parent link in the Complementor library.

  2. Upload the file from the page or post it belongs to, so WordPress records that page as its parent.

  3. Add the widget where the file is offered and pick the file under Source.

  4. Set the link text and the fallback text.

  5. Style the link, publish, and click it to check it opens the right page.

05 / Content and style controls

Customize attachment parent link in Elementor

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

  • Links a Media Library file to the page or post it was uploaded to.

  • Pick the file from a list, or use the current attachment page when attachment pages are on.

  • Only published, public, non-password-protected pages are linked.

  • Link text with {title}, a fallback text, and an optional new tab.

  • Optional icon before or after the text.

  • Style: underline, typography, colours, link states, border, radius, padding, icon and fallback text.

06 / Choose the right approach

Attachment parent link and Elementor alternatives

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

Theme attachment templates

Some themes print a parent link on attachment pages. Attachment pages are off by default since WordPress 6.4, so that link often never shows.

Typed links

A hand-typed link breaks when the page moves or is unpublished. This widget follows the file's parent and hides the link when the page is not public.

07 / Requirements and compatibility

Attachment parent link compatibility with Elementor

WordPress 6.5+PHP 8.0+Elementor 3.25+
  • Requires Elementor.
  • One file per widget; the picker lists the 200 most recent files.
  • Links to the upload parent only, not every page that uses the file.

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 parent link

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

Why is the fallback text shown?

The file was not uploaded to a page, or its page is a draft, private or password-protected.

Why does Current attachment page never show?

Attachment pages are off by default since WordPress 6.4, so their URLs go straight to the file. Pick the file under Source instead.

How do I change which page a file belongs to?

Use the Attach or Detach action in the Media Library list view.

Why is nothing shown?

No file is chosen, or the fallback text is empty for a file with no public page.

09 / Frequently asked questions

Attachment parent link plugin questions

Does it need Elementor Pro?

No. It works with the free version of Elementor.

Does it work with any file type?

Yes. Images, PDFs, audio, video and other Media Library files all keep their parent page.

Is it accessible?

Yes. The link names its page, a short custom text gets the page title added for screen readers, and focus is outlined.

Will it link to private pages?

No. Only published, public pages without a password are linked; everyone else sees the fallback.

Can it open in a new tab?

Yes. Turn on Open in new tab.

10 / Annual All Access subscription

Get attachment parent link 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.