Title: [Plugin: WordPress Social Login]
Last modified: August 20, 2016

---

# [Plugin: WordPress Social Login]

 *  [phracktale](https://wordpress.org/support/users/phracktale/)
 * (@phracktale)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-wordpress-social-login/)
 * Hi,
 * There is an issue with w3c validation with the attribute “provider” on A tag.
 * I suggest to make this attribute an url hash.
 * in includes/plugin.ui.php, instead of :
 *     ```
       <a href="javascript:void(0)" provider = "" title="Connect with <?php echo $provider_name ?>" class="wsl_connect_with_provider" >
       ```
   
 * I suggest that:
 *     ```
       <a href="#<?php echo $provider_id ?>" title="Connect with <?php echo $provider_name ?>" class="wsl_connect_with_provider" >
       ```
   
 * moreever javascript:void(0) is not correct and you mays prefer event.preventDefault()
   in click event function and modify the first function in asset/js/connect.js 
   like this:
 *     ```
       (function($)
       {
       	$(function(){
       		$(".wsl_connect_with_provider").click(function(){
       			popupurl = $("#wsl_popup_base_url").val();
       			provider = this.hash;
       			provider = provider.substring(1, provider.length)
   
       			window.open(
       				popupurl+"provider="+provider,
       				"hybridauth_social_sing_on",
       				"location=1,status=0,scrollbars=0,width=800,height=600"
       			);
       		event.preventDefault();
   
       		});
       	});
       })(jQuery);
       ```
   

Viewing 1 replies (of 1 total)

 *  [tuany](https://wordpress.org/support/users/tuany/)
 * (@tuany)
 * [14 years ago](https://wordpress.org/support/topic/plugin-wordpress-social-login/#post-2488524)
 * Worked for me, thanks =)

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: WordPress Social Login]’ is closed to new replies.

 * 1 reply
 * 2 participants
 * Last reply from: [tuany](https://wordpress.org/support/users/tuany/)
 * Last activity: [14 years ago](https://wordpress.org/support/topic/plugin-wordpress-social-login/#post-2488524)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
