Tagged: 

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #10877

    I’m using Coalition — one page layout.

    I’ve added a page section that manually links to an external site.

    How can I make this open in a new window?

    Where do I add the target=”_blank”?

    I’ve search through the HTML/CSS files but cannot seem to find it.

    Thanks!

    _MM

    #69689

    Anyone have any idea how to do this?

    #69690

    You can try to use javascript – I wrote a tutorial some time ago: http://www.kriesi.at/support/topic/i-want-that-external-links-links-to-other-websites-open-in-a-new-windowtab

    Coalition uses js/avia.js instead of custom.js – however the code itself should be the same.

    #69691

    OK — I think this will only work with links I enter manually with HTML in pages or posts. But what I’m referring to is a page section in coalition…which ends up on the side bar.

    I enter the Link & Section Name

    I choose my section color

    For Link Behaviour choose ‘Link Manually’ and enter the domain I’d like it to link to externally

    But how can I make this open in a new window?

    The link behavior field does not accept HTML

    Thanks

    _MBM

    #69692

    Eg you can try to use following js function in js/avia.js:

    jQuery(function(){jQuery('.section-external').each(function(i){this.target = "_blank";});});

    This code will add target=_blank to all menu links with “external” target.

    #69693

    Do I add this to the avia,js file? Or the jquery.js file?

    #69694

    Hi!

    To js/avia.js please.

    Best regards,

    Peter

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

The topic ‘Make external links open in new window’ is closed to new replies.