Open links in separate window
URL to the page in question:
http://livezeypanographics.com/
-
Bill,
I would like the URL links on the slides and elsewhere to open in a separate window instead of moving completely to the new link. Is that possible on a as needed basis?
Fred
Hey Fred,
You could edit the slides so that all open in a new window, but it’s not possible to have some open in a new window and some not. If you want to have them all open in a new window, you would do this:
- Go to the Appearance section in your WordPress dashboard and choose Edit.
- From the list of files on your right, choose page-home.php and find this line (line 25):
<a href="<?php echo get_post_meta($post->ID, "slideurl", TRUE); ?>"><?php the_post_thumbnail('header-image'); ?></a>
- Change that to this:
<a target="_blank" href="<?php echo get_post_meta($post->ID, "slideurl", TRUE); ?>"><?php the_post_thumbnail('header-image'); ?></a>
- Save your changes.
That will swap them all out for new window links.
Take care,
Bill
- The topic ‘Open links in separate window’ is closed to new replies.