I have added a Facebook share button and it works fine. However, I want to customize my button style and it is not working. I have tried to style the button using an external style.css file, calling classes that I found using Fire Bug, but when I specify my own style using those classes nothing happens.
This is how my code looks:
HTML:
<div class="fb-share-button" data-href="http://localhost/dfs/jersey.php" data-layout="button_count"></div>
Script:
<script>
window.fbAsyncInit = function() {
FB.init({
appId : 'your-app-id',
xfbml : true,
version : 'v2.1'
});
};
(function(d, s, id){
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
Can anybody help me please?
I am also having the same problem with my Twitter button.