Thread Starter
paulio
(@paulio)
Ah – Just found a mention of styling under ‘Coming Soon’ on the Pro page.
Any idea how soon ‘soon’ is perchance?
And any info on the styling options that’ll be added please?
Hi, sorry for the delay.
We don’t have a date for the styling options for the Pro version just yet, but they would be for setting colours etc. explicitly rather than having to use CSS. If you’re happy to do this yourself via CSS then the class names are already there for what you need:
To style the table header row use: .posts-data-table thead th { // styles }
To style ‘even’ numbered rows: .posts-data-table tr.even td { // styles }
To style ‘odd’ numbered rows: .posts-data-table tr.odd td { // styles }
To set column widths you could do this via CSS or you can use the posts_data_table_column_defaults and posts_data_table_column_defaults_[table number] filters. The filter passes (and should return) an array which is indexed using the column name. See the FAQ for details: https://ww.wp.xz.cn/plugins/posts-data-table/faq/
Cheers,
Andy
Beyond styling the table itself, the search and ‘show’ bits are oddly styled.
I notice that the whole table is wrapped in
and tags, which makes the formatting of the table not fit with the rest of the site.
Is there a reason for this?
I'm using the pro version of the plugin.
Beyond styling the table itself, the search and ‘show’ bits are oddly styled.
I notice that the whole table is wrapped in ‘pre’ and ‘code’ tags, which makes the formatting of the table not fit with the rest of the site.
Is there a reason for this?
I’m using the pro version of the plugin.
Sorry, just realised that the tags I had put in messed up the first post.
Ignore all of that the ‘pre’ and ‘code’ tags had been added by me somehow in the way I had copied and pasted the shortcode.
Sorry!
No worries, glad you sorted it 🙂
Andy