M
M
Marian Vitak2019-08-09 15:40:11
Bootstrap
Marian Vitak, 2019-08-09 15:40:11

How to make a mobile-only accordion using Bootstrap 4?

Hello. Can you please tell me how to make an accordion only for the mobile version using Bootstrap 4? Now the site has 2 versions footer(which is not correct) of how to use the accordion on Bootstrap 4 to make it work only when a certain screen width is reached (something like responsivein unslick) slick.js.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan V, 2019-08-09
@verkhoturov

Bootstrap is not needed here.
Right now on your site, footers are switched using media queries .

@media (max-width: 1400px){
.footer {
    display: none;
  }
  .footer-mobile {
    display: block;
  }
}

Those. the desktop footer disappears below 1400px and the mobile footer turns on.
Change the query to, for example, "media (max-width: 767px)"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question