Tagged: table mobile
-
AuthorPosts
-
February 5, 2017 at 10:59 am #742962
The content type Table is not performing well on mobile devices. If I use the Price Table option the whole column with the description doesn’t show at all on Mobile. Only the standard columns are visible, which doesn’t make any sense without a description.
Please advice how to solve this issue.
February 9, 2017 at 6:39 am #744624Hey michielschoonhoven!
Thank you for using Enfold.
The theme has a script that re-orders the table columns on mobile automatically. Unfortunately, this is not suitable on a few table configuration. Please set the Table Purpose to “tabular” and then set the “Responsive Styling” to “scrollable”.
Best regards,
IsmaelFebruary 9, 2017 at 2:16 pm #744812Hi Ismael,
Thanks for your feedback and solution. I’ve changed the settings of the table and although it doesn’t look as good as the pricing table it now works ok on mobile as well..
Thanks
MichielFebruary 10, 2017 at 9:03 am #745260Hey!
Please revert back to the previous settings then add this code in the Quick CSS field.
@media only screen and (max-width: 767px) { .responsive .avia-pricing-table-container { display: table; position: relative; clear: both; width: auto; display: table; table-layout: fixed; } .pricing-table-wrap { display: table-cell; } }In the functions.php file, add this.
function ava_pricing_table_mod(){ ?> <script> (function($){ function a() { $('.avia-pricing-table-container').each(function() { $(this).wrap('<div class="avia-data-table-wrap avia_scrollable_table"></div>'); }); } a(); })(jQuery); </script> <?php } add_action('wp_footer', 'ava_pricing_table_mod');This should retain the price styling while adding a scroll bar on mobile view.
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.
