Forums

Meteor Slides
[resolved] Have Slide show link Urls open in a new window (5 posts)

  1. mtpappas
    Member
    Posted 2 years ago #

    Hey Josh--

    The site I'm working on is http://www.earwigmusicblog.com. I found your plugin about a month or so ago, and think it's great. My guess is to go into the plugin php file to make the change, but alas I couldn't figure it out.

    Thanks in advance and I'm looking forward to your multiple slide show update.

    Mike

    http://wordpress.org/extend/plugins/meteor-slides/

  2. Josh Leuze
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Mike, cool site, I dig the logo.

    I am planning to add an option to open links in a new window, but for the time being, this would be a pretty simple customization to make.

    In the meteor-slideshow.php file, on line 33, change this:

    <a href="<?php echo get_post_meta($post->ID, "slide_url_value", $single = true); ?>" title="<?php the_title(); ?>"><?php the_post_thumbnail('featured-slide'); ?></a>

    Into this:

    <a href="<?php echo get_post_meta($post->ID, "slide_url_value", $single = true); ?>" title="<?php the_title(); ?>" target="_blank"><?php the_post_thumbnail('featured-slide'); ?></a>

    That adds target="_blank" to the anchors so they open in a new window or tab.

    With this customization it is all or nothing, I'm hoping to setup the plugin so that you can choose which slides open in a new window/tab and which don't.

  3. Josh Leuze
    Member
    Plugin Author

    Posted 2 years ago #

    Damn, someone posted a clever trick in this thread and it must have gotten accidentally flagged as spam.

    The trick is, when you are adding a new slide, instead of simple entering the full URL in the Slide Link metabox like this:

    http://www.jleuze.com/plugins/meteor-slides/

    Close that anchor link and sneak in a blank target to open just that specific slide link in a new tab or windows:

    http://www.jleuze.com/plugins/meteor-slides/" target="_blank

  4. madogk
    Member
    Posted 2 years ago #

    that trick works like a charm! Thanks! :)

  5. Josh Leuze
    Member
    Plugin Author

    Posted 2 years ago #

    No problem, I'll probably build this functionality in eventually, but it's handy to have a work-around!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic