Okay
  Public Ticket #928543
format
Closed

Comments

  •  2
    tommasogaddi started the conversation

    Hi,

    I want to align to the center the text of every cell 

    Tommaso

  • [deleted] replied

    Hi tommasogaddi,
    Thank you for your purchase.

    You can add this CSS code in Custom CSS field on wpDataTables settings page:

    .wpDataTablesWrapper
    table.wpDataTable {
        text-align: center !important;
    }
    
  •  2
    tommasogaddi replied

    ok thank you it works. 

    Now I would do the same with the header row beacuse it is not been aligned to center


  • [deleted] replied

    Hi tommasogaddi,

    Can you send me a link of your table so I can take a look at it?

  •  2
    tommasogaddi replied

    http://www.piscinarei.it/prezzi/

    I have now another problem. The table is no more visible and there are displayed only the button to print and to download it in excel format.

    Here you find the google spreadsheet https://docs.google.com/spreadsheets/d/1D_jEXxhBtWqIf5tm2Rz4xyv-4BwFsAryXSc7UGhFDko/edit#gid=0

  • [deleted] replied

    Hi tommasogaddi,

    Do you have any cache plugin activated on your website? If you have please deactivate it and see does it resolve the issue.

  •  2
    tommasogaddi replied

    Hi Milos,

    sure, I have w3 total cache. I deactivated it but I still have the problem.
    The table works well in the preview interface but it is not visible when the shortcode is inserted in the page

    Tommaso


  • [deleted] replied

    Hi tommasogaddi,

    Please provide me a temporary WP-admin login for your site where this happens, so we could log in and take a look ‘from the inside’ as that’s the most efficient way to see and resolve the issue. We do not interfere with any data or anything else except for the plugin (in case that’s a production version of the site), and of course we do not provide login data to third party. You can write credentials here just check PRIVATE so nobody can see it except us.

  •   tommasogaddi replied privately
  • [deleted] replied

    Hi tommasogaddi,

    I have checked and tables are showing without any issues on these pages:

    http://www.piscinarei.it/prezzi/

    http://www.piscinarei.it/?page_id=7783&preview=true

    You can align header title by adding this CSS in wpDataTables Custom CSS field on wpDataTables settings page:

    .wpDataTablesWrapper table.wpDataTable thead tr th {
        text-align: center !important;
    }
    
  •  2
    tommasogaddi replied

    hi Millos, 

    Thank you for your reply. Now I'm not able to see the tables with my mobile phone. Only the title is displayed. I use iOS. Can you check also with a mobile phone ? Tommaso

  •  2
    tommasogaddi replied

    Hi Milos,
    I have some problem:
    1) the data in google sheet https://docs.google.com/spreadsheets/d/1RiwQRP-TQ8icQpablJExZ2ezdaZ_gPK3qyfh8imTvrc/edit#gid=0 don't correspond to the imported data in the table ID = 14 (I have only 4 columns instead of 6)
    2) I inserted the css but I have the right centered format only for the tables ID=12 and 14 and not for the header and for the table Id=13
    3) The tables are not displayed on the mobile device.

    Tommaso



  • [deleted] replied

    Hi tommasogaddi,

    1. It is probably happening because header names of columns C, D and E are identical. Please edit header names of these columns.

    2. Do you want to align text to center and for table with ID 13? Please send me a link where is your table with ID 13 located.

    3. Did you try to load a table with Safari Browser on IPhone?

  •  2
    tommasogaddi replied

    Hi Milos,

    now the tables are no more visible both with chrome and both with safari

    Every are at the page http://www.piscinarei.it/prezzi the first under the text "periods" this is one with id=12,  the second are under the text formula residence with id=13 and the third under "formula residence vilas" with id=14

    I don't know what's happened

    Kind regards

    Tommaso


  • [deleted] replied

    Hi Tommaso,

    Can you check now do you see the table on your mobile phone? It is showing now on my device. Probably you had some issue with W3 Total Cache with minify options. I have disable minify for JavaScript files.

    About header text align you forgot to add . (dot) before selector and because of that CSS was not working. It should be like this:

    .wpDataTablesWrapper table.wpDataTable thead tr th {
        text-align: center !important;
    }

    I have replaced it and now your header text is aligned to center.

    Also it is not recommended to use wpDataTables and TablePress on same pages because we are using same libraries and there may be a conflict.

  •  2
    tommasogaddi replied

    Hi Milos,

    thank you. Every things have worked also on mobile device for some time but after I  deactivated tablepress plugin and uploaded the table 14 from the google sheet I have some others issue:
    1) the table 13 is not more aligned to center (you can see it under formula residence)
    2) the table 14 lost the format (you can see it under formula residence villas)
    Only the table 12 is good

    Tommaso


  • [deleted] replied

    Hi Tommaso,

    1. That is because these columns aligned to right are numbers. I have added this CSS to align them all in center:

    .wpDataTablesWrapper table.wpDataTable tr td {
        text-align: center !important;
    }
    

    2. How do you mean it lost the format? You can take a look at image from attachment how I see table 14.

  •  2
    tommasogaddi replied

    Hi Milos,

    1) it's ok

    2) seeing it by wordpress it is different. When you are logged, the table is without the format. You can see it in the attachment

    Tommaso


  • [deleted] replied

    Hi Tommaso,

    I have created new table from same spreadsheet (table ID 15) and now everything is fine. You can delete table with ID 14 because it is probably corrupted somehow.

  •  2
    tommasogaddi replied

    Hi Milos,

    now everything is ok.

    Thank you

    Tommaso


  • [deleted] replied

    Hi Tommaso,

    You are welcome. We'd greatly appreciate it if you could take a minute and leave a review on CodeCanyon on this link. Thanks! 

  •  2
    tommasogaddi replied

    Hi Milos,

    I have another issue.

    Now in the header of the table the  wpml plugin (for example [wpml_lang name="periodi" text="Periods"] ) doesn't  work. It worked some day ago and now works only in the other cells of the table.

    Can you help me ?

    Tommaso



  • [deleted] replied

    Hi Tommaso,

    That is probably related with wpml plugin. In our plugin in file ../wp-content/plugins/wpdatatables/config/config.inc.php on line 22 there is a line of code:

    define( 'WDT_PARSE_SHORTCODES_IN_STRINGS', true );
    

    where executing shortcodes in wpDataTables is enabled.