My problem: I want to format a line per css class depending on the content. I have defined a css class for it. With font-size and color this works fine. Unfortunately it doesn't work with font-weight and background-color. What am I doing wrong?
Thanks for the answer. Unfortunately that does not help me. I do not want to change the column by css class but the entire line via the conditional formatting. This also works, except for the restriction that background-color and font-weight are not modifiable through my css class.
Please provide me a temporary WP-admin login for your site where this happens, so we could log in and take a look ‘from the inside’ as that’s the most efficient way to see and resolve the issue. We do not interfere with any data or anything else except for the plugin (in case that’s a production version of the site), and of course we do not provide login data to third party. You can write credentials here just check Private Reply so nobody can see them except us.
Hello,
Your plugin is really good.
My problem: I want to format a line per css class depending on the content.
I have defined a css class for it.
With font-size and color this works fine.
Unfortunately it doesn't work with font-weight and background-color.
What am I doing wrong?
Here is the css class:
.wpdt-c tr.tabellen-zeile {
background-color: #2897ae !important;
font-weight: 600 !important;
font-size: 1.1rem;
}
I appreciate your help.
Thank you.
Michael
Hello Michael.
Thank you for your purchase, and for your kind words.
I entered the class in the column settings:
And then defined it in wpDataTables settings/Custom JS and CSS/Custom CSS like this:
And it came up looking like this:
Is this what you were trying to achieve?
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
Hello Aleksandar,
Thanks for the answer. Unfortunately that does not help me. I do not want to change the column by css class but the entire line via the conditional formatting. This also works, except for the restriction that background-color and font-weight are not modifiable through my css class.
Do you have any idea?
I attached a screenshot.
Kind regards.
Michael Selig
Hi again Michael.
Please provide me a temporary WP-admin login for your site where this happens, so we could log in and take a look ‘from the inside’ as that’s the most efficient way to see and resolve the issue. We do not interfere with any data or anything else except for the plugin (in case that’s a production version of the site), and of course we do not provide login data to third party. You can write credentials here just check Private Reply so nobody can see them except us.
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 that Michael.
The table rows are seen as "odd" and "even", so plugin's CSS is already set to !important. That's why that CSS is overwriting yours.
I modified your CSS, and it works fine now. I had to add the "tr.odd td" and "tr.even td" to the class:
Please take a look, and let me know if that looks good now.
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
Hello Aleksandar,
thank you very much. That's exactly how it should be.
Kind regards.
Michael Selig
You're welcome, Michael.
Glad I could help.
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