Comments 3Jose Luis started the conversationJune 26, 2019 at 9:07amHi,Is there any possibility to limit the edit menu of a table?The default option shows "New entry", "Edit" and "Delete", but I just need only the "Edit" option. (no reference to new entry or delete options)How can I do that?Thanks,JLO 2,572Aleksandar repliedJune 26, 2019 at 10:58amHello JLO.Yeah, you can hide those buttons when you add this CSS in Custom CSS field on wpDataTables settings page or directly on the page between<style>Your code</style> tags: .DTTT_button_delete { display: none !important; } .DTTT_button_new { display: none !important; }Also, I believe you may want to hide the "Apply and add new" button from the edit modal as well, so you'll need this also: .wpdt-c #table_1_apply_edit_dialog { display: none !important; } Best regards.Kind Regards, Aleksandar Vuković[email protected] Rate my support wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs Amelia: FAQ | Facebook | Twitter | Instagram | Amelia 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 3Jose Luis repliedJune 26, 2019 at 11:33amThanks Aleksandar, it worked great!1 Like Sign in to reply ...
Hi,
Is there any possibility to limit the edit menu of a table?
The default option shows "New entry", "Edit" and "Delete", but I just need only the "Edit" option. (no reference to new entry or delete options)
How can I do that?
Thanks,
JLO
Hello JLO.
Yeah, you can hide those buttons when you add this CSS in Custom CSS field on wpDataTables settings page or directly on the page between<style>Your code</style> tags:
Also, I believe you may want to hide the "Apply and add new" button from the edit modal as well, so you'll need this also:
Best regards.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia 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
Thanks Aleksandar, it worked great!