No cambia Fuentes ni colores
-
Buenas complemento increible pero no me deja cambiar el Color ni tama?o de las fuentes de la tabla…
-
?Hello.
Firstly, I would like to sincerely apologize for the delayed response as we have been experiencing an unusually high number of tickets. I am sorry that it has taken longer than usual to respond to your concern and your patience is highly appreciated.
–
Please note that the official support language is English, and we have to use Google Translator to try and understand other languages. Since a lot can be lost in translation, we apologize in advance if we misunderstood some segments of your message, and we also ask you to please translate your future messages to English.
Thank you for your understanding.
–
Yes, in the Lite version we do not have the “Customize?” section for DataTables connected to a data source,
which allows to have built-in font/color options, this is only available in the Premium version.
But you can still add custom CSS to change font, font size, and color to your tables in Lite Version.
Here is an example with my dummy table.
You can add one or more CSS classes to one or more columns, on this example i will add two separate classes,
one for text color , i name it “redtext”, and the other class for font size “fontsize30”.
We will add both classes to one of our column’s Display settings.Just add your class names with a space between them.
??Then, we add this Custom CSS in main plugin settings/Custom JS and CSS/Custom CSS :
td.fontsize30 { font-size: 30px !important; } td.redtext { color : red !important; }
As a result, any column which has these CSS classes, will apply the style as we set it, font size?to 30 pixels, and text color to red.
If you simply wish to add the same font-size and text color to your entire table,
just use this CSS :
.wpdt-c .wpDataTablesWrapper table.wpDataTable tr td { font-size: 20px !important; color : red !important; } .wpdt-c .wpDataTablesWrapper table.wpDataTable > thead > tr > th { font-size: 20px !important; color : red !important; }
You can of course, change the style properties as needed, rename your CSS classes, add other styles, etc.
This was an example for DataTables connected to source data, such as CSV/Excel and others;
but if you work with a Simple Table?, they have built-in options to change colors and fonts for each cell, in the Lite Version, too.
I hope that helps.
Kind regards.
- This reply was modified 1 year, 5 months ago by wpDataTables.
Muchas Gracias
Pero yo me refería a los Datacharts no a las Tablas..
Lo tengo en modo oscuro y no se ven las letras muy bien los Nombres estan en un color gris y me gustaria cambiarles (a Blanco)
Un saludo y gracias por su ayuda
Hello.
Apologies for replying so late to this question.
It seems something was lost in the translation, since our translation showed that you meant the tables, but now we see you meant to change this for the Charts.
–
Every chart engine has its own layout and its settings.We use free libraries for chart engines, and they are limited as to what we can change from within the plugin’s UI.
You can check out all the available chart engines and examples of wpDataCharts documentation here .
*Please note that not all chart engines are available in the Lite Version of our plugin.
If the options you need are not in the chart creation wizard, you can try to find a custom solution using chart callbacks.
You can check our documentation about wpDataCharts callbacks.
- Every chart exposes several options that customize its look and feel. Charts usually support custom options appropriate to that visualization. wpDataChart callbacks allow adding options that are available in Google Charts API, Highcharts API, and Chart.js API. ( again, as mentioned, the Lite Version has limited selection of Chart Engines)
- All necessary resources are available in charts engines API (depends on which one you use). Every engine has a different approach to chart settings. In wpDataChart callbacks, you have to adopt those settings to the wpDataChart object (you can take a look at examples for each engine in our documentation, and also in the Support help center). A huge number of examples for any area of programming can be found on stackoverflow.com (typing your problem in google and at the end add “site: stackoverflow.com” and Google will search only that website). Also, a lot of examples of charts, chart settings, and customization can be found on jsffidle.net (typing in google for example “line chart highcharts jsffidle”)
- Please note that using hooks or wpDataTable and wpDataChart callbacks requires a certain level of programming skills and included support refers only to advice.
- The topic ‘No cambia Fuentes ni colores’ is closed to new replies.