Tagged: tab content
-
AuthorPosts
-
May 18, 2022 at 10:01 am #1352158
Hi guys,
I have a problem with the display of the table in the first tab area.
How do I get this displayed properly on the mobile version?
The table should be scrollable on the mobile version.Regards,
AndyMay 20, 2022 at 8:28 am #1352385Hi guys,
any news?Regards,
AndyMay 21, 2022 at 6:00 pm #1352502Hi,
Thank you for your patience, this css will make the inner tab width match the screen width so when the table is scrolled it will fully show:@media only screen and (max-width: 767px) { .responsive #top.page-id-35 #wrap_all #main .av-layout-tab-inner { width: 100vw; } }
but the problem is that on mobile the tab section also scrolls with ‘touchmove’ tab to tab and trying to scroll the table inside the tab actually scrolls the tab.
For mobile devices your table should have switched it’s layout, did you add and custom css to prevent this? You may need to allow the mobile switch so all of the columns show.
I also experimented with removing the ‘touchmove’ for the tabs but was not able to enable it for the tab childern elements at the same time, so this doesn’t seem to be an option.(function($) { $('.av-layout-tab').bind('touchmove', false); }(jQuery));
Another option might be to show an image of the table for mobile that will open in a lightbox so the user can view it full screen.
Best regards,
MikeMay 22, 2022 at 2:31 pm #1352535Hi Mike,
thanks for your feedback.“For mobile devices your table should have switched it’s layout, did you add and custom css to prevent this? You may need to allow the mobile switch so all of the columns show.”
Yes, I disabled that in the settings. Because the presentation doesn’t really appeal to me when you see all the columns.
But I think I’ll try to freshen up the mobile display so that I like it ;)
Seems to be the easiest way.Can you tell me where you found this code
(function($) { $('.av-layout-tab').bind('touchmove', false); }(jQuery));
tried to include?
Thank you!
May 22, 2022 at 2:56 pm #1352538Hi,
That is the code I tested to remove the touchmove from your tab section, it is not on your page.
You can test it if you like by adding it to the end of your functions.php file in Appearance ▸ Editor like this:function custom_script() { ?> <script> (function($) { $('.av-layout-tab').bind('touchmove', false); }(jQuery)); </script> <?php } add_action('wp_footer', 'custom_script');
but my goal was to allow your table to scroll while removing it from your tab section, but it didn’t work as planned.
Best regards,
MikeJune 20, 2022 at 9:31 pm #1355892Hi Mike, hi guys,
maybe there could be another solution cause I am not happy to use a different layout on mobile.
Is there any way for it?
Regards,
AndyJune 20, 2022 at 9:35 pm #1355893…regarding to this topic Mike mentioned above:
“but the problem is that on mobile the tab section also scrolls with ‘touchmove’ tab to tab and trying to scroll the table inside the tab actually scrolls the tab.”June 21, 2022 at 12:07 pm #1355987Hi,
Unfortunately, I didn’t find a way to disable the tab scroll and allow the inner table scroll.
I believe you will need to show the table in the tab without scrolling, or use a different layout on mobile.
Another option might be to show an image of the table for mobile that will open in a lightbox so the user can view it full screen.Best regards,
MikeJune 22, 2022 at 9:02 pm #1356208Thanks Mike
I have now decided to change the layout on the mobile version.
So you can close the ticket.June 23, 2022 at 7:36 am #1356244Hi burdeMedia,
We’ll be closing this thread then.
Thanks for using Enfold and have a great day!Best regards,
Nikko -
AuthorPosts
- The topic ‘Table Display/Tab Content’ is closed to new replies.