Okay
  Public Ticket #1427626
Center all columns
Closed

Comments

  •  1
    Brett started the conversation

    What is the custom CSS to centre all cells other than those in the first column of the table please.

  •  472
    Isidora replied

    Hi Brett,
    Thank you fr your purchase.

    If you wish to apply this code to all of your wpDataTables tables, you can put it in “Custom wpDataTables CSS” text area on wpDataTables Settings page,
    or if you wish to apply it only on specific pages, you can put it in between style tags 

     .wpDataTablesWrapper table.wpDataTable td, .wpDataTablesWrapper table.wpDataTable th
    { text-align: center !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

  •  1
    Brett replied

    Thanks Milan.  

    I entered the code in the column settings of those columns I wanted to center.  Worked well other than the heading which remained left aligned (see red circled area of attachment).

    Also, is it possible to make a specific cell in a column bold ie not the whole column eg the blue circled cell with text in CAPS in the attachment. 

    Best regards

    Brett

  •  472
    Isidora replied

    Hi Brett,

    Yes there is some class with high priority. So please replace that css rule for th

    .wpDataTablesWrapper table.wpDataTable th

    with this

    .wpDataTablesWrapper table.wpDataTable th.wdtheader

    About the styling the specific cell you can use Conditional formatting. You can read more about this on this link.

    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

  •  1
    Brett replied

    Thanks Milan.

    I've changed to 

    .wpDataTablesWrapper table.wpDataTable td, .WpDataTablesWrapper table.wpDataTable th.wdtheader
    { text-align: center !important;}

    but the headings still aren't being centred.

    I watched the conditional formatting video (the plugin documentation is great) but can't work out how to make a single cell (text all in caps) bold.

    I appreciate your help but this plugin is well over my level of expertise and I'll be seeking a less time consuming alternative.

    Thanks

    Brett




  •  472
    Isidora replied

    Hi Brett,

    Sorry for late response. 

    We are located in Serbia and our working time is from 10:00 to 17:00 CET. business days.

    Yes because class wpDataTablesWrapper have to start with small letter.
    Just change that first letter from W to w.

    .wpDataTablesWrapper table.wpDataTable td,
    .wpDataTablesWrapper table.wpDataTable th.wdtheader

    { text-align: center !important;}

    In that column where you have this caps letters in conditional formatting you have to make condition for every text in caps. Example:(attachment 1) and then make that class test in Custom wpDataTables CSS under the "Custom JS AND CSS" (attachment 2) We make example for two cells, but if you have more then you have to add them also in conditional formatting.


    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