Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #842148

    Hi there,

    I’ve taken a look at: https://kriesi.at/support/topic/how-to-hide-some-elements-in-mobile-version/#post-362263 but it doesn’t seem to be helping.

    I’m trying to completely hide a tab from a tab section for mobile only. This includes the content and the title and the icon.

    I have tried a few suggestions on the forum and have therefore enabled the custom ID for the tab in question, however, none of the CSS codes seem to be helping.

    What code would I need to completely hide the content AND title/icon for the page?

    Thanks in advance.

    #842398

    Hey Josh,

    The new version of the theme has screen options, where you can hide the whole section just by checking the box.
    So you can update your theme and play with those.
    If they don’t hide elements right away, you can use css from here

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #842402

    Hey Victoria,

    Thank you for your swift reply.

    Unfortunately, I think you may misunderstand my query.

    I don’t want to hide the WHOLE tab section, I just want to hide ONEof the tabs inside the tab section for mobile only…

    The reason being is that on mobile, only 3 tabs will display in fullscreen. I’d rather omit one of my tabs on mobile for design purposes…

    Is there a custom CSS code that you could supply me to remove one of the tabs in the tab section for mobile only?

    Many thanks,

    Josh

    #842457

    Hi Josh,

    Just checked your site and it’s showing your Coming Soon page, can you give us access to that page? so we can check it and give you a more accurate css solution.

    Best regards,
    Nikko

    #842493

    Hi Nikko,

    Sure, please see private content.

    I have duplicated the 3rd tab and called it ‘Kresi’ I’d like to hide this one :)

    #842498

    Hi!

    I edited your element and gave it a custom CSS class “custom-tabs” and then added following code to Quick CSS

    @media only screen and (max-width: 767px) {
    .custom-tabs .av-section-tab-title[data-av-tab-section-title="4"], .custom-tabs .av-layout-tab[data-av-tab-section-content="4"] {
        display: none!important;
    }}

    Please review your website

    Cheers!
    Yigit

    #842503

    You’re a star!

    Thanks ever so much, Yigit and co!

    #842647

    Hi guys,

    Yigit, I’m afraid it’d seem we have an issue with the custom CSS…

    If you look on mobile and desktop you’ll notice that: YES, the tab I wished to remove for mobile only is no longer there… However, It seems to be moving the content from tabs to other icon headings on mobile. Meaning the first tab, when viewed on mobile, is completely blank and the second tab displays the content that was meant to be in the first tab. Finally, this means that the third tab of content which I wanted to display is no longer there. It’s as if the code has omitted the desired tab, but moving the content ‘one along’.

    Could you please look into this?

    Many thanks,

    Josh

    #842750

    Hi,

    Can you try to add this css code:

    @media only screen and (max-width: 767px) {
      .custom-tabs .av-tab-section-inner-container.avia-section-small {
        width: 300vw !important;
      }
    }

    Hope this helps.

    Best regards,
    Nikko

    #842756

    Hi Nikko,

    Thanks for trying, unfortunately, that doesn’t seem to have completely solved the issue…

    It’s fixed tab number 1 but now caused padding issues with 2 and 3…

    Again, thanks for attempting – looking forward to seeing what else we can try.

    #842960

    Hi,

    I changed the code to following one

    @media only screen and (max-width: 767px) {
    .custom-tabs .av-section-tab-title[data-av-tab-section-title="4"] {
        display: none!important;
    }}

    Please review your website :)

    Best regards,
    Yigit

    #842988

    Hi Yigit,

    That’s the ticket!

    Well done, thanks for the help.

    What would I need to add into that code to hide more than one tab? For example, if I wanted to hide 3 and 4, what would I need to do?

    As a suggestion, this would be a great screen option feature to add into tabbed sections.

    Many thanks,

    Josh

    #842999

    Hi,

    You can use the code as following

     @media only screen and (max-width: 767px) {
    .custom-tabs .av-section-tab-title[data-av-tab-section-title="4"],
    .custom-tabs .av-section-tab-title[data-av-tab-section-title="3"] {
        display: none!important;
    }}

    Please note the comma and title number change

    Best regards,
    Yigit

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.