Title: melphi's Replies | WordPress.org

---

# melphi

  [  ](https://wordpress.org/support/users/melphi/)

 *   [Profile](https://wordpress.org/support/users/melphi/)
 *   [Topics Started](https://wordpress.org/support/users/melphi/topics/)
 *   [Replies Created](https://wordpress.org/support/users/melphi/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/melphi/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/melphi/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/melphi/engagements/)
 *   [Favorites](https://wordpress.org/support/users/melphi/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[TemplatesNext ToolKit] open new window in button](https://wordpress.org/support/topic/open-new-window-in-button/)
 *  [melphi](https://wordpress.org/support/users/melphi/)
 * (@melphi)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/open-new-window-in-button/#post-6567957)
 * I resolved temporary the problem with this little modification :
 * In the shortcodes.php file, I replace the fonction by this one:
 *     ```
       function tx_button_function($atts, $content = null) {
   
          	$atts = shortcode_atts(array(
             	'style' => '',
       		'text' => '',
       		'url' => '',
       		'color' => '',
       		'textcolor' => '',
       		'target' => '',
       		'class' => '',
          	), $atts);
   
       	$return_string ='';
   
          	$return_string .= '<a href="'.esc_url($atts['url']).'">target="'.esc_attr($atts['target']).'">'.esc_attr($atts['text']).'</a>';
   
          	return $return_string;
       ```
   
 * In the button generation text, I added this attribut at the end : target=”_blank”
   to get an open link in new window.
 * **Example :** [tx_button style=”default” text=”Google Maps” url=”[https://maps.google.com/&#8221](https://maps.google.com/&#8221);
   color=”#1e73be” textcolor=”#ffffff” target=”_blank”]

Viewing 1 replies (of 1 total)