Streaming live at 10am (PST)

Opening links outside an iFrame by adding a Custom Attribute in Webflow


#1

Hi,

I've created a few custom pages on Webflow and then embedded those within an iFrame on my website. Those pages contain links which we need them to open in the parent page rather than in the iFrame.

Searching the internet I realised that I need to add ' target="_parent" ' next to each link within the HTML text. This means, saving the file, editing it as text and then manually inserting this.

Is there any way I can add this directly through Webflow rather than manually adding next to each link? Please note we don't need it to open in a new tab but rather in the parent page.

Link to our site: http://www.bombonieres.com.cy/paketo-gamou.html
All content bellow the main menu was created through Webflow and its embedded in an iFrame. These are the links that we would like to open in the parent page rather in the iFrame.


#2

Hi, yes you can, right in Webflow, using custom attributes. I wanted to test it to be sure so I wrote it here:

http://sab.webflow.io/links-for-iframes

Basically, select your link, go to the Settings tab and add a custom attribute like this:


#3

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.