Okay
  Public Ticket #1434670
mobile tables
Closed

Comments

  • Neojits started the conversation

    hello!

    could you please provide me with the proper custom wpDataTables CSS that id need to input so that whenever i set my column to collapse on mobile, that the title of the column disappears and only the content of the cell shows. 

    Thank you so much, i know its an odd request but any help would be greatly appreciated

  •  472
    Isidora replied

    Hi Neojits,
    Thank you for your purchase.

    Just add this code in Custom wpDataTables CSS under the "Custom JS AND CSS" in main settings of wpdatatables.

    table.has-columns-hidden > tbody > tr.row-detail > td > ul > li > span.columnTitle{
    display:none !important;
    }

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


    Kind Regards, 

    Isidora Markovic

    wpDataTables: FAQFacebookTwitterFront-end and back-end demoDocs

    Amelia: FAQFacebookTwitter |  Amelia demo sites | Docs

    You can try our wpDataTables add-ons before purchase on these sandbox sites:

    Powerful FiltersGravity Forms Integration for wpDataTablesFormidable Forms Integration for wpDataTables

  • Neojits replied

    Hello! thank you for the reply

    It works for all tables, as you said. But when i put the code into my page, it does it to only that page.

    I want it to do it to only a specific column. Ive attached an image to show you.

    I have two columsn titled "RESULT" and they seem to disappear on most of my columns but not in others. Im looking for uniformity, either all gone, or all displaying the title. But i like it without the titles. how can i make it so that only the colums titled "RESULT" disappears on mobile? thank you :)

  •  472
    Isidora replied

    Hi Neojits,

    You can hide only that column title but you need the find class of that li element in Inspect element of the browser.(attachment)

    When you find the name(in our case is column-name) just add it in css like this:

    table.has-columns-hidden > tbody > tr.row-detail > td > ul > li.column-name > span.columnTitle{
    display:none !important;
    }


    Kind Regards, 

    Isidora Markovic

    wpDataTables: FAQFacebookTwitterFront-end and back-end demoDocs

    Amelia: FAQFacebookTwitter |  Amelia demo sites | Docs

    You can try our wpDataTables add-ons before purchase on these sandbox sites:

    Powerful FiltersGravity Forms Integration for wpDataTablesFormidable Forms Integration for wpDataTables