• Resolved basheerfa

    (@basheerfa)


    Hi

    I am using a Tablepress plugin for my website, and i want to hide the delete (rows,columns) in the plugin to prevent the website editor from delete,.

    is there any way to do that ?

    I am trying to set the delete button type to “hidden” but an error occured after that
    “wordpress critical error…etc”.

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    I’m not really sure what you mean. Which Delete button are you talking about?

    Regards,
    Tobias

    Thread Starter basheerfa

    (@basheerfa)

    Thanks for your response, i mean the remove button inside the table (remove button, remove columns).

    Thread Starter basheerfa

    (@basheerfa)

    * The delete button in the selected rows and selected button

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    ok, I see, thanks for the clarification! The best way to hide those should be to use some CSS code. As a foundation, you could use the TablePress Extension from https://tablepress.org/extensions/input-field-size/
    In that PHP file, you could then insert this CSS code:

    #tablepress-page #rows-remove,
    #tablepress-page #columns-remove {
      display: none;
    }

    Of course, hiding the buttons is no protection to simply removing the text in the cells, so I’m not sure how useful that really is.

    Regards,
    Tobias

    Thread Starter basheerfa

    (@basheerfa)

    Thanks for you so much

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    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 here in the plugin directory. Thanks!

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

The topic ‘Critical Error/ Privileges’ is closed to new replies.