Title: janado's Replies | WordPress.org

---

# janado

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

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

 Search replies:

## Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[AddToAny Share Buttons] Mobile Open In New Tab](https://wordpress.org/support/topic/mobile-open-in-new-tab/)
 *  [janado](https://wordpress.org/support/users/janado/)
 * (@janado)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/mobile-open-in-new-tab/#post-16049670)
 * Would be cool if anyone has a solution for my problem. Thanks in advance!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[AddToAny Share Buttons] Mobile Open In New Tab](https://wordpress.org/support/topic/mobile-open-in-new-tab/)
 *  [janado](https://wordpress.org/support/users/janado/)
 * (@janado)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/mobile-open-in-new-tab/#post-16019863)
 * I have a similar problem but can’t get it to work with the provided example. 
   I would like to open ALL shares in a new tab in addition to scripted urls and
   share titles. I have tried different approaches including just using the provided
   example, but none of them worked. Could you please help me how I have to extend
   my code so that the share open in a new tab? Thank you in advance!
 *     ```
       a2a_config.callbacks.push({
           share: function(share_data) {
               var new_url = '…';
       	var new_title = '… ';
   
             if (window.location.href.indexOf("/de/") > -1) {
               new_title = '…';
               new_url= '…';
             }
   
             if (window.location.href.indexOf("/es/") > -1) {
               new_title = '…';
               new_url= '…';
             }
   
             return {
               url: new_url,
               title: new_title,
             };
           },
       });
       ```
   
    -  This reply was modified 3 years, 7 months ago by [janado](https://wordpress.org/support/users/janado/).
    -  This reply was modified 3 years, 7 months ago by [janado](https://wordpress.org/support/users/janado/).

Viewing 2 replies - 1 through 2 (of 2 total)