elementor-tabs-as-tabs-mobile

There are times when one wants to have the Elementor Tabs widget to keep displaying as tabs on mobile instead of switching to an accordion. This tutorial will show you how to do so.

Note that if you want all of your tabs to behave this way, then do NOT add the CSS ID in the Advanced tab on the Tabs widget and remove the h-tabs from the provided CSS below:

@media (min-width: 320px) {
  #h-tabs .elementor-tabs-wrapper {
    display: flex;
    	flex-direction: row;
  }
}

@media (min-width: 320px) {
  #h-tabs .elementor-tab-mobile-title {
    display: none;
  }
}

 

Similar Posts

32 Comments

  1. hello
    thank you for this code,
    but in my case, my tabs’s count is 10.
    so i want to tab’s row is 2 line …
    can you help me?

    1. Hi Zoey,
      Not too sure how to go about that as this code was intended for just a few tabs. If I come up with something, I’ll post back here.
      Cheers!
      Lyle

      1. Hello, many thanks
        I also had the same problem, only able to insert 5 tabs and not 10
        If you find a solution I would love to know.
        Esther

        1. Hi Esther,
          You’re welcome 🙂
          Not really sure why that would be. If I come up with something, I’ll post back.
          Cheers!
          Lyle

    1. Hi Robin,
      If you copied the code from the site, then you have to add the h-tabs CSS ID in the Advanced tab of the Tab widget.
      If you have already done that and it doesn’t work, make sure you have copied the CSS correctly.
      Cheers!
      Lyle

  2. Perfection!!! Thank you sooo much! I couldn’t figure this out on my own. I appreciate your code on this. It’s exactly what I was looking for. This post popped up in Google search results with the phrase “tabs on mobile + elementor”

    1. You’re welcome, BeeBo 🙂
      Good to hear you found it easily and that it was what you were looking for.
      Cheers!
      Lyle

  3. Hi, thank’s for this code, I would like to show the tabs at the bottom and the content at the top… is it possible you think ?

  4. Hi
    is it possible to do that for Vertical tabs as well, if yes then plz share the css code for that.

    thanks in advance

  5. Hi Sniffle,

    Great vid and thanks for sharing! 🙂

    Quick question though…does this css only work with the elementor tabs widget? I tried applying it to the one from the free “Essential Addons” plugin (The specific widget is: EA Advanced Tabs), but it doesn’t seem to be working…

    Any thoughts?

    Thanks a lot Sniffle!

    1. Hi Bob,
      Yes, this CSS works only for the Elementor tabs. The EA one would have different selectors.
      Cheers!
      Lyle

  6. Hi Sniffle ! Thanks for your css.

    However, i still have a issue. When it goes to responsive mobile if the tabs are not exactly the same length due to different titles it can generate unwanted gap.
    How would be possible to force all tab to same length ? what ever the title length

    Cheers

    1. Hi Emeric,
      You’re welcome 🙂
      Not to sure on how to go about doing that. I’ll do some testing and post back when I find something that works.
      Cheers!
      Lyle

  7. I have managed to make tabs break line on all screens, for people having this issue when there are many tabs this is my code I’m using:

    (I have disable borders for tabs so it looks better)

    #h-tabs .elementor .elementor-element .elementor-tab-title {
    display: inline-block;
    }

    #h-tabs .elementor-tabs-wrapper {
    display: block;
    text-align: center;
    }

    #h-tabs .elementor-tab-mobile-title {
    display: none;
    }

    @media (max-width: 767px) {
    .elementor .elementor-element .elementor-tab-title {
    padding: 15px 5px;
    }
    }

  8. Hey there,
    I did everything just like the video,
    but when i switch to the mobile, the tabs totally disappear!
    here is the link, would you please help me?
    https://betasahm1.ir/mobile/

    many thanks!

    1. Hi Sadra,
      Not sue what to say as I cannot make out what it is supposed to look like. I would suggest posting this to the Elementor Facebook group where others who are familiar with the language will be better suited to assist.
      Cheers!
      Lyle

  9. Hello Lyle,
    Thank You for this video. You saved me a ton of time having to hunt around Elementor to find how to do this.
    Just getting into making layout changes for mobile view and this tab tutorial did exactly what I wanted.
    Going to definitely have a look at you other Elementor videos.

    1. You’re very welcome 🙂
      Glad to hear that it was what you needed and thanks for checking out the other videos.
      Cheers!
      Lyle

  10. Hi,
    Love the video, thank you soo much.
    Do you know how I’m able to make the tabs centre when in mobile as its moved to the left hand side ?

Leave a Reply

Your email address will not be published. Required fields are marked *