WordPress.org

Support

Support » Plugins and Hacks » Open in New Window Plugin » [Resolved] how to ignore one page

[Resolved] how to ignore one page

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author kpgraham

    @kpgraham

    I am working on a change to the plugin. So that you can put a short code on the page to disable the plugin.

    If you put on the page:

    <script>function kpg_oinw_action(event) {return false;}</script>

    it should cause a javascript error that will kill the function, I think.

    Keith

    when i click on the link, it still opens in a new window….

    i would like for that specific link when clicked, it would not open in a new window…..

    Plugin Author kpgraham

    @kpgraham

    For a specific link, the code would be

    <a target="_self" href=....

    The target=”_self” will cause the link to open in the same window. If the plugin sees something already in target it does not open it in a new window.

    just add target=”_self” to the A tag.

    Keith

    oh. well how my links are, they are in a category. i don’t manually create links.

    for example clicking on menu option on my website directs me to that specific page.

    another example is going to google.com and clicking on the menu option “Images” . would like for it to open in same window, and i do not write the backend of the code for that specific link, wordpress does that for me.

    unless i have to edit the wordpress css to get to that A tag?

    isn’t their a code i could type into the custom css of my theme?

    this is a site = http://trottyzone.com

    so when i click on “Forum” i would like for it not to open in new window.

    Plugin Author kpgraham

    @kpgraham

    Every other link shows http://www.trottyzone.com. The forum shows just trottyzone.com.

    Change the forum link and add the www. and you should be home free.

    Keith

    thanks that worked! 🙂

    and your plugin is awesome 😀

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Resolved] how to ignore one page’ is closed to new replies.
Skip to toolbar