I recently purchased wpDataTables, I have tables where I want to be able to create a new row(via +new entry) , however, I wouldn't want the users to be able to edit those new rows once created. From what I see, the config to creating and editing columns seems to be the same thing in wpDataTables. I'm believe I'm mistaken because it seems like a fiairly basic task and this seems to be quite complex so I imagine its somewhere but for some reason I can't find anything about it in the docs.
If you wish to disable the Edit button, you can add this CSS:
.DTTT_button_edit {
display: none !important;
}
I guess you also don't want them to delete the rows:
.DTTT_button_delete {
display: none !important;
}
If, in the future, you desire to hide the "Add New" as well, this would be the CSS you can add:
.DTTT_button_new {
display: none !important;
}
If you add this CSS in wpDataTables settings/Custom JS and CSS/Custom CSS field, the button will be hidden everywhere (in back-end and front-end, on all tables). But if you want to do it only for a certain table on front-end, you need to add the CSS on the page, in between the <style>...</style> tags.
that should do it, is there a backend implementation of this in the works? if I'm not mistaken it would be fairly easy for anyone with html knowledge to make those button re-appear
Aleksandar is out of office and I will take it from here.
Yes that is true, we have on our TO DO list features where you will be able to choose which button you what to show on front-end. What you can do is to remove edit button from back-end. In file wp-content/plugins/wpdatatables/source/class.wpdatatable.php: around line 3421
you will find this
and you have to remove array with Edit like this
Please not that you will not have Edit button or front-end and on backend as well.
If you have any other issue or question please open new ticket, and we help you out.
I’d like to ask you a favor. Would you mind taking a few minutes to write a review for us, please on this link?
Our free version is the only place where we can have proof for our hard work; your comments are beneficial for others to know what to expect when they’re looking for our plugin.
Thank you in advance. It means a lot to us, and I am looking forward to reading your comment.
Hello,
I recently purchased wpDataTables, I have tables where I want to be able to create a new row(via +new entry) , however, I wouldn't want the users to be able to edit those new rows once created. From what I see, the config to creating and editing columns seems to be the same thing in wpDataTables. I'm believe I'm mistaken because it seems like a fiairly basic task and this seems to be quite complex so I imagine its somewhere but for some reason I can't find anything about it in the docs.
Hello Matt
If you wish to disable the Edit button, you can add this CSS:
I guess you also don't want them to delete the rows:
If, in the future, you desire to hide the "Add New" as well, this would be the CSS you can add:
If you add this CSS in wpDataTables settings/Custom JS and CSS/Custom CSS field, the button will be hidden everywhere (in back-end and front-end, on all tables). But if you want to do it only for a certain table on front-end, you need to add the CSS on the page, in between the <style>...</style> tags.
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
that should do it, is there a backend implementation of this in the works? if I'm not mistaken it would be fairly easy for anyone with html knowledge to make those button re-appear
Hi Matt,
Aleksandar is out of office and I will take it from here.
Yes that is true, we have on our TO DO list features where you will be able to choose which button you what to show on front-end. What you can do is to remove edit button from back-end. In file wp-content/plugins/wpdatatables/source/class.wpdatatable.php: around line 3421
you will find this
and you have to remove array with Edit like this
Please not that you will not have Edit button or front-end and on backend as well.
Kind Regards,
Isidora Markovic
wpDataTables: FAQ | Facebook | Twitter | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Amelia demo sites | Docs
You can try our wpDataTables add-ons before purchase on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables
awesome, thanks for the prompt response
Hi Matt,
You are welcome.
If you have any other issue or question please open new ticket, and we help you out.
I’d like to ask you a favor. Would you mind taking a few minutes to write a review for us, please on this link?
Our free version is the only place where we can have proof for our hard work; your comments are beneficial for others to know what to expect when they’re looking for our plugin.
Thank you in advance. It means a lot to us, and I am looking forward to reading your comment.
Best regards.
Kind Regards,
Isidora Markovic
wpDataTables: FAQ | Facebook | Twitter | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Amelia demo sites | Docs
You can try our wpDataTables add-ons before purchase on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables