• Resolved michaelrieder

    (@michaelrieder)


    Hi Team
    I have a page with two table on it. Now I want to hide the “new button” of the first table (table_1) only.
    Your recommended code refers to both tables.
    <style>
    .DTTT_button_new {
    display: none !important;
    }
    </style>
    What do I have to add?
    Best Regards

Viewing 1 replies (of 1 total)
  • Plugin Author wpDataTables

    (@wpdatatables)

    Hi there.

    Tables on front end get an odd number assigned. So, if you have two tables, the selectors would be

    #table_1_wrapper

    #table_3_wrapper

    If you had another table, that would be “#table_5_wrapper” and so on. So, to remove the “Add New” button only for the first table, you’d need to add this code:

    #table_1_wrapper .DTTT_button_new {
    display: none !important;
    }

    Kind regards.

Viewing 1 replies (of 1 total)

The topic ‘Hide new button for one table’ is closed to new replies.