Home › Forums › Support › click to call button code for mobile site › Reply To: click to call button code for mobile site
May 3, 2015 at 10:06 am
#105086
Tom
Lead Developer
Lead Developer
For sure!
First, add this CSS:
.show-on-mobile {
display: none;
}
@media (max-width:768px) {
.show-on-mobile {
display: block;
}
}
Then, add this HTML wherever you want the button to show up:
<div class="show-on-mobile">
<a class="button" href="tel:123-456-7890">Call me!</a>
</div>
Of course, you’ll have to adjust the phone number.
Hope this helps 🙂