You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
Pages: 1
Often I want links from my pages to open in a new window so a customer isn't taken away from the page they're on, but, previously I've had to add "Opens in new window" in the text which clutters things up and is a bit clunky, for example I put:
<a href= [link] target="_blank">See this page (Opens in new window)</a>
I've found the following bit of css which you can add to System/ Displays/ Display Skins all.min.css and which will put the "Opens in New Window" symbol (a square box with an arrow pointing out of it) on any link that has target = "_blank" after it
a[target="_blank"]::after { content: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAQElEQVR42qXKwQkAIAxDUUdxtO6/RBQkQZvSi8I/pL4BoGw/XPkh4XigPmsUgh0626AjRsgxHTkUThsG2T/sIlzdTsp52kSS1wAAAABJRU5ErkJggg==); margin: 0 3px 0 5px; }
Simple, neat and tidies up the page a bit :-)
Offline
Thanks for posting. The software uses rel="external" for all links that target _blank which allows the HTML to remain valid output. I'd recommend using rel="external" on your links, and then adjusting the CSS to make use of that.
Offline
Graham wrote:
I presume you mean the HTML link would read:
Code:
<a href= [link] rel="external">See this page </a>That seems to work.
Correct. rel="external" would replace target="_blank".
Offline
Pages: 1