How do you insert exit box symbol after every isblank link on CMS rich text block?
Doing the bg trick works on ALL links, but I need it to only work on new window External isblank links
How do you insert exit box symbol after every isblank link on CMS rich text block?
Doing the bg trick works on ALL links, but I need it to only work on new window External isblank links
Use an overlay div and using conditional visibility show the div IF the link is blank.
@aaronocampo
Can post an example / screenshot please?
How to filter if external new window link / isblank?
Can you share your read only link please?
Page:
http://html-sandbox.webflow.io/cms-ext-link-icon
Preview LInk:
https://preview.webflow.com/preview/html-sandbox?utm_source=html-sandbox&preview=e67118bc353dff859a7c3e046fc087ce
Ok, a couple of things first:
span-exit_window
class works on non CMS text based elements. Unable to span-exit_window
external links in CMS rich text block.I just posted this to another topic. It also applies here.
You would need to use some custom code (JS/jQuery) to append the target=“blank” declaration to an anchor element (external link only) within a classed RTF element. I have seen unwarranted concern about using this declaration on webflow sites, but this should not be an issue as there is no user generated content.
In addition you would just toggle a class on those links to add a graphic element (an svg for example) that you created on styleguide page for example.
Here is a simple set of examples over at css-tricks.com you could customize for your needs.
Thanks @webdev This looks like it’ll do the trick!