WordPress.org

Ready to get started?Download WordPress

Forums

Links shortcode
[resolved] Links won't open in New Window (2 posts)

  1. webplanet
    Member
    Posted 1 year ago #

    Plugin works great, but I can't get the links to open in a new window.

    I selected "_blank — new window or tab" for the target on each individual link (in the links section), and also added the following code to the plugin settings:

    <div class="links_sc_fb">
    <ul style="margin-left: 30px;">
    <li><a target="_blank" href="[link_url]">[link_name]</a>
    [optional <br />[link_description]||]</li>
    </ul>
    </div>

    Any ideas why it's not working? It opens all of the links in the same window.

    http://wordpress.org/extend/plugins/links-shortcode/

  2. Maarten Swemmer
    Member
    Plugin Author

    Posted 1 year ago #

    I don't see anything wrong with your code. One thing I can imagine is that there is some JavaScript running on the page that makes all links open in the same tab. Alternatively it could be a browser setting (http://www.ghacks.net/2009/07/03/force-firefox-to-open-links-in-same-tab/). Does this behavior also happen in other browsers? Also, does it happen for all links or only for internal links (http://stackoverflow.com/questions/7513204/force-open-links-in-same-window-on-same-domain)?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic