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

  1. webplanet
    Posted 3 years 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>

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


  2. Maarten Swemmer
    Plugin Author

    Posted 3 years 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

  • Links shortcode
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic