Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #7176

    Hi guys,

    I get how to add a link to a feature image, but it opens in the same tab/window, taking people away from my site.

    How can I get it to open the link in a new tab/window?

    Thanks a lot

    #57001

    Hey,

    you can use following js code in js/avia.js open up the file and replace:

    jQuery.noConflict();

    jQuery(document).ready(function(){

    with:

    jQuery.noConflict();

    jQuery(document).ready(function(){

    jQuery("a[href^='http:']").not("[href*='mydomain.com']").attr('target','_blank');

    If you’d like to open external links in a new window/tab only. Replace mydomain.com with your domain. If all links should open in a new windows use following code:

    jQuery.noConflict();

    jQuery(document).ready(function(){

    jQuery(".slideshow_container a[href^='http:']").attr('target','_blank');

    #57002

    Brilliant, thanks a lot.

    Love the support Kriesi provides, thanks again

    #57003

    Glad that I could help you :)

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Feature Image link to New Tab’ is closed to new replies.