• When I go to insert a link, by default WordPress sets it to open in the same window, but when I change the target to open in a new window, the setting will not stay. I’ll change the setting, insert the link, then save the blog post, but every time I go check if it worked or not, the link keeps opening in the same window. (and yes I refreshed the page and it still doesnt work). When I go back in to WordPress to edit the post, I find that the setting is indeed changed back to “open target in same window”

    How can I get the “open in new window” setting to stick??

Viewing 8 replies - 1 through 8 (of 8 total)
  • 1. Global Change for links to open new window
    File: index.php
    Find: <head> tag
    Add: <base target=”_blank”>

    2. Article Titles
    File: index.php
    Find: tag with “storytitle” class
    Add: target=”_self” inside
    tag

    3. Category Links
    File: /wp-includes/template-functions-category.php
    Find: function the_category
    Add in 3 spots: target=”_self” inside tags

    4. Comments Link
    File: /wp-includes/template-functions-comment.php
    Find: function comments_popup_link
    Add: target=”_self” inside tag

    5. Calendar (sidebar)
    File: /wp-includes/template-functions-general.php
    Find: function get_calendar
    Add in 3 spots: target=”_self” inside tags

    6. Category Links (sidebar)
    File: /wp-includes/template-functions-category.php
    Find: function list_cats
    Add: target=”_self” inside tag (near bottom inside Foreach loop)

    7. Archive Links (sidebar)
    File: /wp-includes/template-functions-general.php
    Find: function get_archives_link
    Add in 2 spots: target=”_self” inside tags

    8. Search Form (sidebar)
    File: index.php
    Find: <form> tag
    Add: target=”_self” inside <form> tag

    9. Misc. Links (sidebar) i.e. About Me
    File: /index.php
    Find: any instances
    Add: target=”_self” inside tags

    10. Comments Form submit
    File: /wp-comments.php
    Find: <form> tag
    Add: add target=”_self” attribute

    I believe this this infomration helps.

    Best regards
    Dan

    Thread Starter firstsource

    (@firstsource)

    Hmm, thank you so much for the legnthy reply, it looks like it could be very helpful, but honestly I have no idea what it means.

    [he has to learn how to post code…]

    If you have the WYSIWYG editor on, turn it off and try again. I find that the WYSIWYG editor often screws up well-intentioned code.

    ?
    there is no wysiwyg here – I was referring to dansg’s post above… which is a mess because he didn’t read the instructions about posting code.

    Thread Starter firstsource

    (@firstsource)

    where would i go to turn the WYSIWYG editor off?

    Thread Starter firstsource

    (@firstsource)

    oh nevermind i found out how to turn the editor off. but if i do, will it mess up my previous posts? will it change all the code into a big old mess? ??

    @ firstsource – Turning it off won’t mess up anything you’ve already done. ??

    @ moshu – I was referring to firstsource’s question, not dansg’s reply. ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘can’t open link in a NEW window’ is closed to new replies.