Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Perials

    (@perialscom)

    Dear Darick,

    Thanks for using our plugin.

    As of for now there is no setting in the plugin to open button links in a popup window instead of new tab. Still you can add the following code to the plugin to force the button links open in a new small window

    add_action('wp_head','s3_open_in_new_window');
    function s3_open_in_new_window() {
    	?>
    	<script>
    		jQuery(document).ready(function($){
    			$("#s-share-buttons>a").click(function(){
    				var myWindow = window.open($(this).attr('href'), "name", "width=450, height=400");
    				return false;
    			});
    		});
    	</script>
    	<?php
    }

    The above code will go into ‘simple-social-share.php’ right before the very last line of the code (i.e before ?> on line 188 and after ‘new simple_social_share;’ on line 187).

    Let us know if this works.

    Thanks & Regards,
    Perials Team.

    Thread Starter darick0029

    (@darick0029)

    hi, thank you very much for your reply, really appreciate it.
    and it works fine also.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Open in a Windeo’ is closed to new replies.