Horizontal Scrolling Header Width in Tabs
-
Hi,
My column headers are all wrongly formatted and don’t align with the cells below. II believe this is because I am using TablePress shortcode within a tab, causing the horizontal scrolling to not work properly. Apparently this is the cause according to TablePress support:
“The reason for this problem is that, with tabs, only the first table is shown when the page is loaded. The tables on the other tabs are hidden. This however means that the browser can not calculate things like column widths for these tables.”
Is it possible to solve this issue without buying the Premium version of TablePress? It seems very expensive to have to pay £80 per year just to have my columns aligned.
Apparently the below code could be used to delay the Javascript, but it is not tailored for my website and I have no coding experience. Could you edit the below code so that it would work for my theme? I am using MyListing Theme and Elementor page builder:jQuery(function($){
setTimeout( function() {
$(‘.elementor-tab-content .dataTable’).DataTable({retrieve:true}).columns.adjust().draw();
$(‘.elementor-tab-title’).one(‘click’, function(){$(‘#’+this.getAttribute(‘aria-controls’)+’ .dataTable’).DataTable({retrieve:true}).columns.adjust().draw();});
}, 10 );
});Many thanks,
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.