WordPress.org

Ready to get started?Download WordPress

Forums

Image Widget
need another link target _top or _parent (2 posts)

  1. ellebillias
    Member
    Posted 3 years ago #

    plugin works great except I don't want the link to open in a new window or the same window, I need it to open in the top window or the parent window, can this be added to the plugin please?

    http://wordpress.org/extend/plugins/image-widget/

  2. ellebillias
    Member
    Posted 2 years ago #

    I was able to get this to work by adding these two extra lines of code to widget-admin.php inserted after Line 38

    <option value="_top"<?php selected( $instance['linktarget'], '_top' ); ?>><?php _e('Open Top Window', $this->pluginDomain); ?></option>
    	<option value="_parent"<?php selected( $instance['linktarget'], '_parent' ); ?>><?php _e('Open Parent Window', $this->pluginDomain); ?></option>

    Could this possibly be included in the plugin as I'm sure others would find the extra options valuable.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic