Title: Responsive collapse mode with right aligned toggle button
Last modified: June 12, 2020

---

# Responsive collapse mode with right aligned toggle button

 *  Resolved [fiskebyxa](https://wordpress.org/support/users/fiskebyxa/)
 * (@fiskebyxa)
 * [6 years ago](https://wordpress.org/support/topic/responsive-collapse-mode-with-right-aligned-toggle-button/)
 * Hello Tobias,
 * Thank you for an awesome plugin.
    Would it be possible to change the location
   of the toggle button from left to right using this function from DataTables (
   [https://datatables.net/extensions/responsive/examples/child-rows/right-column.html](https://datatables.net/extensions/responsive/examples/child-rows/right-column.html))?
 * It looks like the toggle button is inserted in a separate column.
 * Best regards

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [6 years ago](https://wordpress.org/support/topic/responsive-collapse-mode-with-right-aligned-toggle-button/#post-12977367)
 * Hi,
 * thanks for your question, and sorry for the trouble.
 * Yes, that should be possible.
    First, turn on the `collapse` mode via the Shortcode
   parameter (after installing and activating the TablePress Responsive Tables Extension
   from [https://tablepress.org/extensions/responsive-tables/](https://tablepress.org/extensions/responsive-tables/)
   Then, you’d have to add this to the “Custom Commands” text field of the table’s“
   Edit” screen:
 *     ```
       "responsive": { "details": { "type": "column", "target": -1 } }, "columnDefs": [ { "className": "control", "orderable": false, "targets": [ -1 ] } ]
       ```
   
 * (Note that you might also have to add a new column to the end of the table first,
   I haven’t checked that.)
 * Regards,
    Tobias
 *  Thread Starter [fiskebyxa](https://wordpress.org/support/users/fiskebyxa/)
 * (@fiskebyxa)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/responsive-collapse-mode-with-right-aligned-toggle-button/#post-13027607)
 * Hello Tobias,
 * I managed to get it working with your custom command code.
    Thank you so much
   for your support!
 * Cheers
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/responsive-collapse-mode-with-right-aligned-toggle-button/#post-13029377)
 * Hi,
 * no problem, you are very welcome! 🙂 Good to hear that this helped!
 * Best wishes,
    Tobias
 * P.S.: In case you haven’t, please [rate TablePress](https://wordpress.org/support/plugin/tablepress/reviews/#new-post)
   here in the plugin directory. Thanks!

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

The topic ‘Responsive collapse mode with right aligned toggle button’ is closed 
to new replies.

 * ![](https://ps.w.org/tablepress/assets/icon.svg?rev=3192944)
 * [TablePress - Tables in WordPress made easy](https://wordpress.org/plugins/tablepress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tablepress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tablepress/)
 * [Active Topics](https://wordpress.org/support/plugin/tablepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tablepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tablepress/reviews/)

## Tags

 * [button](https://wordpress.org/support/topic-tag/button/)
 * [collapse](https://wordpress.org/support/topic-tag/collapse/)
 * [right](https://wordpress.org/support/topic-tag/right/)
 * [toggle](https://wordpress.org/support/topic-tag/toggle/)

 * 3 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/responsive-collapse-mode-with-right-aligned-toggle-button/#post-13029377)
 * Status: resolved