Our Biggest Sale Is Here
Up to 70% Off
Get the Deal

How can I set option Scrollable just on mobile devices?

You can set this by inserting this CSS code in Custom wpDataTables CSS under the “Custom JS AND CSS” in main settings of wpdatatables.

@media screen and (min-width: 780px) {
   .wpDataTablesWrapper div.wdtscroll {
     overflow-x: initial !important;
   }
}

This will be affected on all tables, but if you want just for specific one then insert this code on page where is that table between the style tag.(<style>Code here</style>)

<style>
@media screen and (min-width: 780px) {
    .wpDataTablesWrapper div.wdtscroll {
      overflow-x: initial !important;
    }
}
</style>

Please note that Scrollable option should be turned on in the table settings.

Was this answer helpful ? Yes No
Wait, Before You Download!

To get your hands on wpDataTables Lite, please enter your email address below. We’ll send you a direct download link and keep you updated on existing features along with helpful tips and tricks!

By continuing, I accept Privacy Policy and T&C
Mail Box