how to display button only for mobile or tablet browsers

3.8k Views Asked by At

i'm trying to make a responsive theme in word press using twitter bootstrap. In my site there is a sidebar for showing calendar and an appointment form. i need to display a button instead of this if the user uses a mobile or tablet. and if the user uses desktop browser then he/she can see the calendar and form directly in the page itself.how should i do this. any idea??

1

There are 1 best solutions below

2
On BEST ANSWER

bootstrap doc : http://getbootstrap.com/css/#responsive-utilities-classes

<button class="visible-xs visible-sm hidden-md hidden-lg">mybutton</button>