Hey there, Awesome Customers!

Just a heads up: We'll be taking a breather to celebrate International Workers' Day (May 1st and 2nd - Wednesday and Thursday) and Orthodox Easter from Good Friday (May 3rd) through Easter Monday (May 6th). So, from May 1st to May 6th, our team will be off enjoying some well-deserved downtime.

During this time, our customer support will be running on a smaller crew, but don't worry! We'll still be around to help with any urgent matters, though it might take us a bit longer than usual to get back to you.

We'll be back in action at full throttle on May 7th (Tuesday), ready to tackle your questions and requests with gusto!

In the meantime, you can explore our documentation for Amelia and wpDataTables. You'll find loads of helpful resources, including articles and handy video tutorials on YouTube (Amelia's YouTube Channel and wpDataTables' YouTube Channel). These gems might just have the answers you're looking for while we're kicking back.

Thanks a bunch for your understanding and support!

Catch you on the flip side!

Warm regards,

TMS

Okay
  Public Ticket #3621154
Remove column header
Open

Comments

  • Egloffe started the conversation

    Hi, I would like to remove the header on some tables I have but not all of them.

    I found that information :

    This will be affected on all tables, but if you want just for specific one then insert this code on the page where is that table between the style tag (<style>Code here</style>

    <style>
    .wpdt-c .wpDataTablesWrapper table.wpDataTable thead {
    display: none !important;
    }
    </style>

    But I don't know where can I find the page code ? I'm using elementor Pro.

    Can you help me ? 

    Thanks a lot

  •  1,689
    Miloš replied

    Hello,

    I will advise you on different ways how you can hide Column Headers.

    We will start from the easiest way, to just hide all headers of a specific Table on a WP Page, then we will go over some 'more advanced' ways how you can choose to hide just specific Headers on a Table, etc.


    1. If you wish to hide all Headers on a specific Table, and if this table will be on its own on the WP Page, then the CSS you already found does the trick.

    Use this custom CSS code :

    .wpdt-c .wpDataTablesWrapper table.wpDataTable thead {
    display: none !important;
    }
    

    Custom code needs to be applied to the page where the booking form is. Depending on what you're using (Gutenberg blocks, or some page builder), adding the CSS or JS can be done in a few different ways. 

    If you need help with adding custom CSS to the page, please take a look at this article.


    Here is my example, I will just go to my Page with the Table, then go to the Theme's Customize section ( i use Astra Theme for this example) and here I an add "Additional CSS".

    7940995208.png
    9809433009.png

    Then publish the change, and that's it.

    -

    2. If you wish to 'target' a specific Table ID only, do this :

    .wpdt-c .wpDataTablesWrapper table.wpDataTableID-1 thead {
    display: none !important;
    }

    Just change the 1 to your Table ID.


    3. This is a workaround if you wish to try just hiding some specific Column Headers, while leaving others visible :

    Add a custom CSS class in the Column's Display settings, for each column we wish the header to "hide".

    I will name the class "hideHeader" , but you can name it anything you wish.

    2631029869.png

    Then add this CSS into your custom CSS tab:

    th.wdtheader.hideHeader { 
       display: none;
    }
    

    So now, any Column that has that class is going to hide it's Header.

    8717034849.png

    Let me know how it goes and if you have any questions.smile.png

    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia 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