• Resolved willscott1989

    (@willscott1989)


    I couldn’t find any option to open slider banner links in a new tab/window so I have modified my site’s local code as follows:

    in the “responsive_headerimageslider.php” file, under the array “extract(shortcode_atts….”

    I have added the line:

    “target_blank” => ”,

    And then set that as:

    if( $target_blank ) {
    $target_blank = ” target=’_blank’ “;
    }

    Then in the “design” files echo out the var $target_blank:

    a href=”<?php echo $sliderurl; ?>” <?php echo $target_blank ?> class=”image-link” > </a

    Finally, when calling the slider just add the attribute target_blank=”true” where you want it:

    echo do_shortcode(‘[sp_responsiveslider cat_id=”6″ speed=”5000″ autoplay_interval=”5000″ target_blank=”true”]’);

    Hope this helps!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Essential Plugins by WP OnlineSupport

    (@wponlinesupport)

    Hello @willscott1989

    Thanks for reaching Here,

    I checked You code and that is wrong, you cannot add shortcode attribute like that. also your changes will overwritten in plugin next update.

    If you want target: blank we have added in Primium version. Please take a look here: Documentation

    Please let us know if you have any concern.

    Thanks and regards.

    Thread Starter willscott1989

    (@willscott1989)

    Hi @wponlinesupport

    Any reason you think you can’t add shortcode attrs like that?
    It works the way I want it to…

    Appreciate that you would rather I bought premium but that is the only feature I would benefit from it…

    Plugin Author Essential Plugins by WP OnlineSupport

    (@wponlinesupport)

    Hello,

    You can use it like BUT you need to be careful when we will send the plugin update. If you update the plugin, you need to make the changes again.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Set target=”_blank” on links – open links in new tab’ is closed to new replies.