Plugin Contributor
Savvas
(@savvasha)
Hi @nlsaun ,
SportsPress uses the DataTables script to populate data tables. FixedColumns option is available on this script, so you will need to include to your code an inline script to enable this option.
See here for an example: https://datatables.net/extensions/fixedcolumns/examples/initialisation/left_right_columns.html
Thanks,
Savvas
Thread Starter
nlsaun
(@nlsaun)
I see this…
$('#example').DataTable( {
fixedColumns: {
left: 2
}
} );
However, I have no idea where this would be added or what replaces '#example'
Can you tell me where this code would go and what should be entered into ‘#example’? Thanks!
Plugin Contributor
Savvas
(@savvasha)
Hi @nlsaun ,
#example should be replaced by your table ID. This depends on your site code.
To add this snippet to your site you can follow a guide, for example: https://webdesign.tutsplus.com/how-to-add-custom-javascript-to-your-wordpress-site–cms-34368t
Thanks,
Savvas