Open links in separate window

Support Area Forums Bottega Open links in separate window

Viewing 2 posts - 1 through 2 (of 2 total)
URL to the page in question: http://livezeypanographics.com/
  • Author
    Posts
  • #27193
    Fred Livezey
    Participant

    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

    #27196
    Bill Robbins
    Moderator

    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:

    1. Go to the Appearance section in your WordPress dashboard and choose Edit.
    2. 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>
      
    3. Change that to this:
      
      <a target="_blank" href="<?php echo get_post_meta($post->ID, "slideurl", TRUE); ?>"><?php the_post_thumbnail('header-image'); ?></a>
      
    4. Save your changes.

    That will swap them all out for new window links.

    Take care,
    Bill

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Open links in separate window’ is closed to new replies.