Link my facebook page

Link my facebook page
0

#1

Hey,
Can anybody here tell me why my link to facebook account is not working ?

<button style="background-color:#3C599F;"class=“btn icon” >


#2

Did you put an anchor tag that linked to your profile?


#4

<a href="https://putyourfacebookurlhere"></a>


#5

yes I have used it. Its not working.

<button style="background-color:#3C599F;"class="btn icon" ><a href="https://www.facebook.com/Ssangeetaa" target="_blank"></a><i class="fa fa-facebook"></i></button>

#6

If you nest an <a> tag inside a <button>, chances are it won’t work as you’d expect.

However it’s easy to make <a>s look like <button>s. You might do with something like this

<a class="btn icon" href="https://..." target="_blank"><i class="fa fa-facebook"></i></a>

#7

don’t forget to include the font-awesome css… otherwise, you’d have nothing inside your button.

<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">

<a href="https://www.facebook.com/Ssangeetaa" target="_blank" class="btn btn-primary"><span class="fa fa-facebook"></span></a>

Output: