- This topic has 6 replies, 3 voices, and was last updated 3 years, 8 months ago by Cristo Rey.
February 13, 2018 at 10:26 am #495484Cristo Rey
I am not sure how to word this: |All the external links on my site open in a new window. I had thought to put a notification on those links using the “Exit Notifier” plug-in. Works Ok, but now I found something that I think will work better…but clueless as to how to do it.
Looking at Tripadvisor on this page if you click website at the top of the page (right next to Vatican Museums) it opens in a new window, but smaller than the TripAdvisor window, so you know you are going to a new window. Pretty neat imho, but not sure how to accomplish this. Any ideas?GeneratePress 2.0.2February 13, 2018 at 12:54 pm #495592LeoStaffCustomer SupportFebruary 13, 2018 at 2:27 pm #495663Cristo Rey
Sorry… I should have been clearer.
“Vatican Museum Tour”
underneath there are images, and then to the right of those images there is a listing of “Vatican Museums”
Underneath Vatican museums is:
Viale Vaticano, 00120 Vatican City, Italy +39 06 6988 4676
Website E-mail Improve this listing
When you click on “website” it opens up the page in a new window about half the size of my site window, where you can see both the smaller TripAdvisor page and their original page.
Does this make it any clearer?February 13, 2018 at 9:48 pm #495845TomLead DeveloperLead Developer
<a href="URL TO YOUR PAGE" onclick="window.open(this.href,'targetWindow', 'width=500, height=500'); return false;">Your link text</a>
I believe that should work.February 14, 2018 at 6:13 am #496079Cristo Rey
Thanks, Tom. I realize this was not really a GP problem, but was hoping some smart guy like you could give me an answer.February 14, 2018 at 9:36 am #496364TomLead DeveloperLead DeveloperFebruary 15, 2018 at 5:34 am #497099Cristo Rey
It worked like a charm, but I realized that won’t be practical….with thousands of external links I would have to change each one (I assume). So I will keep looking….perhaps some css.
- You must be logged in to reply to this topic.