Hey everyone!
With the holiday season upon us, we want to share our upcoming working hours:
- New Year: Our team will be off on January 1st and 2nd. We’ll be back on Friday, January 3rd, to respond to any messages received during this time.
- Weekend: As usual, we don’t work on weekends, so January 4th and 5th will also be non-working days.
- Orthodox Christmas: Our office will be closed on Monday and Tuesday, January 6th and 7th for the holiday.
After that, we’ll return to our regular schedule and assist you as quickly as possible.
In the meantime, you can explore our documentation for Amelia and wpDataTables. You'll find tons of helpful resources, including articles and handy video tutorials on YouTube (Amelia's YouTube Channel and wpDataTables' YouTube Channel), which might just have the answers you need while we’re away.
Thanks a bunch for your understanding and support!
Warm regards and happy holidays!
TMS
Hi,
Can you look into why the padding I have added to my tables with custom CSS is showing/working in the table example in WordPress but not showing on the webpage?
I kind of only get the standard padding on the webpage even if I change it to for instance 50px and the table looks all crazy in the WordPress example.
FYI: It's not an attractive solution for me to use CSS classes as they are removed for each column when there's a change in the header - which we have once a month.
You can see the table on our frontpage.
The table has the following custom CSS:
We have the following custom CSS in the wpDataTables settings. I can't see that it creates any conflicts:
Best regards,
Morten
Hi Morten,
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.
1. For the table data selector/ the style for the cells, try this :
It seems the CSS selector you made is not 'fully affecting' the Table cells as it should be.
That can happen if some other style, either from another Custom CSS or perhaps something from your Theme or another Plugin might override it on front-end;
Especially if you see the Table on the back-end applying the correct style - then it is certainly some kind of conflict that overrides just the front-end.
But by creating this kind of a selector, which is kind of 'targeting' a specific element with 'more accuracy' , it can override it.
It works in the Magic CSS Editor ( A Chrome extension i use for testing) when i try it directly on my Chrome Browser and your Page :
2. For the Header selector, try this :
.wpdt-c .wpDataTablesWrapper table.wpDataTable thead th {
padding-right: 15px !important;
padding-left: 15px !important;
padding-top: 15px !important;
padding-bottom: 15px !important;
}
I found another selector, for example if you wish to add a Table ID in the mix, then you can add this in the Main Plugin Settings/Custom JS and CSS/Custom CSS and just input a specific Table ID, if you need it different for specific Tables without having to input it in each Table Customize, but rather all in the Main Plugin Settings, if that might help :
For the Header row :
.wpdt-c .wpDataTablesWrapper table.wpDataTable.wpDataTableID-38 > thead > tr > th {
padding-right: 15px !important;
padding-left: 15px !important;
padding-top: 15px !important;
padding-bottom: 15px !important;
}
For the Cell Data ( even rows) :
.wpdt-c .wpDataTablesWrapper table.wpDataTable.wpDataTableID-38 tr.even td {
}
For the Cell Data ( odd rows) :
.wpdt-c .wpDataTablesWrapper table.wpDataTable.wpDataTableID-38 tr.odd td {
}
I hope that helps.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
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
Thx Milos!
This is so weird.
It's not not working on the frontpage (table 38) here. But it's working here and here (table 13, 14, 50 and 51).
The CSS below is inserted in the general settings. Makes no difference if I insert in the custom CSS for table 38.
Best,
Morten
Hi Morten,
Apologies again for the delayed reply.
Thank you for all your patience.
-
Yes, it does look strange.
I found there are some CSS styles being called on that first Page where Table 38 is, check on my screenshot.
You can also try to check this, if you inspect the HTML of the Page, and type in "padding" as filtered value of the CSS. The first section of the CSS seems to be overriding all the padding in that Table :
When we compare it to another Page - where it works OK, this is the first line of CSS that has any "padding" filtered in it.
And that is the Custom CSS you added on purpose , for those Table ID's, they are being respected on that Page without any additional CSS overriding them.
Can you check did you add any "Additional CSS" to that first Page somewhere, through the Page builder's "Customize" section, perhaps?
Someone from your end must have added that Style, it has a comment above that says :
/* Forces the right padding on all columns */
And it is as on my image here , being added to your Page :
Can you check, try to find where you/or someone else from your end has added these lines of CSS, and do you need them?
If you don't need them, it is best to remove that section, then it should resolve the issue of overriding these new 'padding' lines we are trying to do.
Let me know if that helps.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
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
Hi Morten,
Sorry, i forgot to add one detail.
If you find where that CSS Section is coming from - and maybe if you need those to be set, but to have higher importance on these new lines we are setting;
Then you can just try to remove the !important clause from those other CSS lines - and leave the !important clause just on this latest CSS - so it should have higher importance then.
I hope that helps.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
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
Hi Milos,
I found out where the CSS comes from...it comes from table 39 which is a table showing the same data but customized for the tablet and mobile version of the site.
So, table 38 shows on desktop but is hidden on tablet and mobile and table 39 is hidden on desktop but shows on tablet and mobile.
The difference was that table 39 had the padding CSS in its own custom CSS (because its the only table using that specific padding), whereas all other tables had the padding CSS in the general settings CSS (because more tables share it).
Looks like its working now!! :-)
Thx for the help and effort!! :-)
Hi Morten,
Just following up, once again I want to extend my heartfelt apologies for the delayed reply,
which is due to an unexpectedly high volume of inquiries.
We truly value your patience during this period.
I am delighted to hear that this has been resolved. Thank you for letting us know. Anything else that we could assist with, please don't hesitate to create new tickets.
Have a great day!
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
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