bootstrap click to call
19,870
It is not working because you have invalid HTML (an href attribute on a button). Usage info from W3C
This should do the trick:
<a class="btn btn-primary btn-xlg" href="tel:713-992-0916" style="padding:20px;background-color:rgba(0,0,238,.5)">
Click to Call <span class="glyphicon glyphicon-earphone" style="padding-left:10px; padding-right:10px;"></span>713-992-0916
</a>
Author by
Admin
Updated on June 15, 2022Comments
-
Admin almost 2 years
I am trying to insert a click to call button on my home page. This is the first site I've built using Bootstrap (Bootstrap 3.2.0).
Please view the code and help me figure out what I'm doing wrong. Thank you
You can visit the site here.
<button type="button" class="btn btn-primary btn-xlg" href="tel:713-992-0916" style="padding:20px;background-color:rgba(0,0,238,.5)"> Click to Call <span class="glyphicon glyphicon-earphone" style="padding-left:10px; padding-right:10px;"></span>713-992-0916 </button>
-
Admin over 9 yearsThank you. that fixed my issue.
-
Nour Lababidi over 5 yearsthis was the key for the click to start the call on mobile href="tel: thank you