You can add the following code in the Custom wpDataTables CSS field, in wpDataTables main Settings, under Custom JS and CSS.
.wpDataTablesWrapper table.wpDataTable>tbody>tr>th, .wpDataTablesWrapper table.wpDataTable>tbody>tr>td {
text-align: right !important;
}
This will be affected on all tables, but if you want just for specific one then insert this code on the page where is that table between the style tag (<style>Code here</style>).
Our company is located in Serbia and our working time is from 10:00 to 17:00 CET. Business days.
Again, I apologize, but when You pointed that out, I saw that two !important would cancel each other out.
I added custom CSS to the Date column: "date_left", and to all the other columns: "other_right". After that I added the custom code in the Custom JS and CSS and it looks fine now.
table.wpDataTable td.date_left {
text-align: left !important;
}
table.wpDataTable td.other_right {
text-align: right !important;
}
If You want to apply these settings to the other tables, You just need to open the column settings and set the custom CSS to be either "date_left" or "other_right", and it will automatically pick up the css.
Please let me know if this solution works for You.
I want to left justify the dates in these tables https://ethanolrfa.org/resources/industry/statistics/#1537812461691-0db247cc-7902 but right justify all the rest of the information. How do i do this on a table to table basis?
Hello RFAWP.
Thank You for Your purchase.
You can add the following code in the Custom wpDataTables CSS field, in wpDataTables main Settings, under Custom JS and CSS.
This will be affected on all tables, but if you want just for specific one then insert this code on the page where is that table between the style tag (<style>Code here</style>).
Please let me know if it works.
Best regards.
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
will this keep my dates left justified still?
we also have multiple tables on our page. can you let me know how best to do this without re-formatting every table on the page....
I apologize, RFAWP.
I forgot to provide that line of code.
Please add this to custom CSS field as well, so dates stay left-aligned, while everything else goes to the right.
Best regards.
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
now it just seems like everything is right aligned: https://ethanolrfa.org/resources/industry/statistics/#1537812461691-0db247cc-7902 i added both codes to the custom CSS on the settings
please look at each table and seeing how the dates are inserted
Hello again RFAWP.
Sorry for late response.
Our company is located in Serbia and our working time is from 10:00 to 17:00 CET. Business days.
Again, I apologize, but when You pointed that out, I saw that two !important would cancel each other out.
I added custom CSS to the Date column: "date_left", and to all the other columns: "other_right". After that I added the custom code in the Custom JS and CSS and it looks fine now.
If You want to apply these settings to the other tables, You just need to open the column settings and set the custom CSS to be either "date_left" or "other_right", and it will automatically pick up the css.
Please let me know if this solution works for You.
Best regards.
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
this did work, however if you go to monthly ethanol production- that is all left justified
nevermind i think i got it
Hello again RFAWP.
Glad that we solved the issue.
If you have any more issues or questions feel free to open a new ticket, we will gladly help.
We'd greatly appreciate it if you could take a minute and leave a Review on CodeCanyon on this link. Thanks!
Best regards.
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