Thanks for your suggestion. We do have a lot of new features planned for the plugin, so at some point this will be included as well. At the moment, you can add custom CSS classes to each column:
Then you can define the class in Custom JS and CSS/Custom CSS field in wpDataTables settings, so it only applies to the columns that have that class:
Thanks for the info regarding centering. I tried this approach and was successful at first. But now it doesn't work. It must be something fundamental about how wpDataTables works that I'm not understanding.
If the data in a column is designated as a string this approach works great, but if it is designated as an integer it doesn't. Any reason for this? For example I have some data that will always be whole numbers (1, 11, 60) but never decimals included nor any 3-digit numbers (121, e.g.). I don't know how other data types are handled (or not) in terms of centering.
It is nice that you can center text on all tables or a single page, But honestly this should be on a table by table or column by column base.
https://wpdatatables.com/faqmd/center-text-table/
Hi Garth
Thanks for your suggestion. We do have a lot of new features planned for the plugin, so at some point this will be included as well. At the moment, you can add custom CSS classes to each column:
Then you can define the class in Custom JS and CSS/Custom CSS field in wpDataTables settings, so it only applies to the columns that have that class:
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Thanks for the info regarding centering. I tried this approach and was successful at first. But now it doesn't work. It must be something fundamental about how wpDataTables works that I'm not understanding.
If the data in a column is designated as a string this approach works great, but if it is designated as an integer it doesn't. Any reason for this? For example I have some data that will always be whole numbers (1, 11, 60) but never decimals included nor any 3-digit numbers (121, e.g.). I don't know how other data types are handled (or not) in terms of centering.
If it helps the defined CSS is:
.center
{text-align: center !important}
Hi again Mathew
If this doesn't work for you, you can try this:
td.testclass aligns the cells, while th.testclass aligns the headers.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Thanks!
You're welcome Mathew
If you have any further questions or issues, please feel free to open a new ticket, and we'll gladly help.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables