Title: header_rows=&#8221;0&#8243; not working
Last modified: January 12, 2018

---

# header_rows=”0″ not working

 *  Resolved [tmfbernd](https://wordpress.org/support/users/tmfbernd/)
 * (@tmfbernd)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/header_rows0-not-working/)
 * Hi there,
 * I’m using this great plugin to import Google Spreadsheets.
 * I have some tables that do not have headers, so I supposed I could just set the
   attribute header_rows to “0”. It doesn’t work though (it works with numbers >
   1, but not with 0).
 * Am I doing something wrong here?
 * Thank you!
    -  This topic was modified 8 years, 5 months ago by [tmfbernd](https://wordpress.org/support/users/tmfbernd/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Meitar](https://wordpress.org/support/users/meitar/)
 * (@meitar)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/header_rows0-not-working/#post-9860541)
 * “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.
 *  Thread Starter [tmfbernd](https://wordpress.org/support/users/tmfbernd/)
 * (@tmfbernd)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/header_rows0-not-working/#post-9869598)
 * 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](https://wordpress.org/support/users/meitar/)
 * (@meitar)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/header_rows0-not-working/#post-9875224)
 * > 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.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘header_rows=”0″ not working’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/inline-google-spreadsheet-viewer.
   svg)
 * [Inline Google Spreadsheet Viewer](https://wordpress.org/plugins/inline-google-spreadsheet-viewer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/inline-google-spreadsheet-viewer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/inline-google-spreadsheet-viewer/)
 * [Active Topics](https://wordpress.org/support/plugin/inline-google-spreadsheet-viewer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/inline-google-spreadsheet-viewer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/inline-google-spreadsheet-viewer/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Meitar](https://wordpress.org/support/users/meitar/)
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/header_rows0-not-working/#post-9875224)
 * Status: resolved