Plugin Author
Meitar
(@meitar)
“It doesn’t work” is not enough information to understand what you expect would happen, much less actually resolve your issue for you. Paste a link to your site as requested by the form you filled in to post this message, paste the shortcode you used, or preferably both.
What did you expect would happen when you posted this? Think through it next time, so that you do not waste so much of other people’s time. Thanks.
Hi Meiter,
my appologies for having wasted so many people’s times. That certainly wasn’t my intention.
Appreciate you taking the additional time writing the response.
What I was expecting header_rows=“0” in the short code to do was that there will no header be displayed for the table. Howeverm, instead of this, it is still displaying the first row as header row.
Conversely, when I e.g. set header_rows=“2”, I am expecting that the outcoming table will display the first two rows of the imported spreadsheet as headers (instead of the default 1 row). This does work as expected.
Based on your response though I am assuming that this is an issue with our WP implementation and not the plugin. I will have our developers have a look at it (I’m only working with the plugin).
Thank you
Bernd
Plugin Author
Meitar
(@meitar)
What I was expecting header_rows=“0” in the short code to do was that there will no header be displayed for the table. Howeverm, instead of this, it is still displaying the first row as header row.
header_rows determines how many rows are rendered in the table’s <thead> element, which is required by DataTables in order to parse the table data correctly. This is why there is no option to forego rendering a table header. The minimum allowed value for header_rows is 1. Anything 0 or lower gets forcibly convereted to 1 so that DataTables does not break and, subsequently, I have to spend less time on this forum answering the same question over and over again because people don’t tend to bother to search the archives so that they can answer their own question, and instead seem to prefer that I hand-hold them through simple Google searches.
That’s why I was upset when you posted your question, originally: “It doesn’t work” will always have one and only response, which is, “What doesn’t work?” because that’s the only reasonable question to ask in response to such a query with no substantive data in it. Please take this experience as a lesson, albeit not one kindly-delivered, to never, ever post such substance-free texts to forums like this in the future. You will be saving yourself a lot of time (specifically, the exact amount of time you save yourself will be the amount of time it takes to get the obvious “What doesn’t work?” response, plus the amount of time it takes you to re-ask your question).
If you don’t want the header row to appear like a header row, you can use CSS in your Theme to change the appearance of the table’s header(s), as you would with any other visual styling desire you have for your website.