Hey there, Awesome Customers!

Just a heads up: We'll be taking a breather to celebrate International Workers' Day (May 1st and 2nd - Wednesday and Thursday) and Orthodox Easter from Good Friday (May 3rd) through Easter Monday (May 6th). So, from May 1st to May 6th, our team will be off enjoying some well-deserved downtime.

During this time, our customer support will be running on a smaller crew, but don't worry! We'll still be around to help with any urgent matters, though it might take us a bit longer than usual to get back to you.

We'll be back in action at full throttle on May 7th (Tuesday), ready to tackle your questions and requests with gusto!

In the meantime, you can explore our documentation for Amelia and wpDataTables. You'll find loads of helpful resources, including articles and handy video tutorials on YouTube (Amelia's YouTube Channel and wpDataTables' YouTube Channel). These gems might just have the answers you're looking for while we're kicking back.

Thanks a bunch for your understanding and support!

Catch you on the flip side!

Warm regards,

TMS

Okay
  Public Ticket #3628715
cell formatting
Closed

Comments

  • Paul Foraker started the conversation

    How can I set the contents of header and data cells to word wrap? 

  •  1,692
    Miloš replied

    Hi Paul,

    For word wrapping of the main cells of the Table, in the rows, you can easily achieve this.

    Just enable "Limit table width to page width" in the Table's Display settings, then you will see a new option 'word wrap' appear.

    7500551481.png


    Please check more about these options for Table's Display settings here.


    2. When it comes to word wrapping of the Header row, it needs a custom workaround.

    You can 'force' the Header row to have the 'word wrap' , with this CSS :

    .wpDataTablesWrapper table.wpDataTable > thead > tr > th {
        white-space: pre-wrap!important;
    }

    If you want all your Table headers to have this, add this to the main Plugin settings/Custom JS and CSS/Custom CSS.


    Or if you just need it for one Table, go in the Table's Customize/Custom CSS and insert it there.


    If you have multiple Tables on the same Page, and for example, if this CSS makes the 'other tables' wrap the Header row - but if you just want to 'target' a specific Table ID - you can use the Table ID like this :

    .wpDataTablesWrapper table.wpDataTableID-76 > thead > tr > th {
        white-space: pre-wrap!important;
    }

    Just change the 76 to your table ID.

    In this case, if you need multiple Tables on the same WP Page and to 'target' each table individually by ID, it is best to directly add this CSS to the Page.

    Custom code needs to be applied to the page where the booking form is. Depending on what you're using (Gutenberg blocks, or some page builder), adding the CSS or JS can be done in a few different ways. 

    If you need help with adding custom CSS to the page, please take a look at this article.



    Let me know if that helps.


    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia 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