Title: Styling the menu
Last modified: September 1, 2016

---

# Styling the menu

 *  Resolved [paulio](https://wordpress.org/support/users/paulio/)
 * (@paulio)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/styling-the-menu-2/)
 * Hi
    Does the plugin allow for assigning class names to table elements for styling
   please?
 * It looks almost perfect for what I need, but I need to be able to colour the 
   header row at the very least, and it would be nice to be able to style the rest
   of the table as well.
    To be able to target header, data, column, and maybe alternate
   rows with css would be ideal.
 * (I would also be able to use it to override the percentage width settings hopefully
   as I really want fixed column widths)
 * Many thanks,
    Paul
 * [https://wordpress.org/plugins/posts-data-table/](https://wordpress.org/plugins/posts-data-table/)

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

 *  Thread Starter [paulio](https://wordpress.org/support/users/paulio/)
 * (@paulio)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/styling-the-menu-2/#post-7545201)
 * 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?
 *  [Andy Keith](https://wordpress.org/support/users/andykeith/)
 * (@andykeith)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/styling-the-menu-2/#post-7545475)
 * 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://wordpress.org/plugins/posts-data-table/faq/](https://wordpress.org/plugins/posts-data-table/faq/)
 * Cheers,
    Andy
 *  [Brimfulof](https://wordpress.org/support/users/brimfulof/)
 * (@brimfulof)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/styling-the-menu-2/#post-7545541)
 * 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.
       ```
   
 *  [Brimfulof](https://wordpress.org/support/users/brimfulof/)
 * (@brimfulof)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/styling-the-menu-2/#post-7545543)
 * 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.
 *  [Brimfulof](https://wordpress.org/support/users/brimfulof/)
 * (@brimfulof)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/styling-the-menu-2/#post-7545544)
 * Sorry, just realised that the tags I had put in messed up the first post.
 *  [Brimfulof](https://wordpress.org/support/users/brimfulof/)
 * (@brimfulof)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/styling-the-menu-2/#post-7545545)
 * 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!
 *  [Andy Keith](https://wordpress.org/support/users/andykeith/)
 * (@andykeith)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/styling-the-menu-2/#post-7545546)
 * No worries, glad you sorted it 🙂
 * Andy

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

The topic ‘Styling the menu’ is closed to new replies.

 * ![](https://ps.w.org/posts-data-table/assets/icon-256x256.png?rev=2997236)
 * [Posts Table with Search & Sort](https://wordpress.org/plugins/posts-data-table/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/posts-data-table/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/posts-data-table/)
 * [Active Topics](https://wordpress.org/support/plugin/posts-data-table/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/posts-data-table/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/posts-data-table/reviews/)

 * 7 replies
 * 3 participants
 * Last reply from: [Andy Keith](https://wordpress.org/support/users/andykeith/)
 * Last activity: [9 years, 12 months ago](https://wordpress.org/support/topic/styling-the-menu-2/#post-7545546)
 * Status: resolved