• Resolved adn100

    (@adn100)


    Hi,

    I have tried to imported a .csv file into Tablepress. Everything went well but the second half part of data disappeared after 7th or 8th column.

    I looked into the datatable javascript lib feature and found that it can achieve ‘Enable horizontal scrolling, to make viewing tables with many columns easier.’and some other sorting options. I ticked them all but none worked. Please help!

    page link: http://www.afacademic.co.nz/?page_id=88

    http://ww.wp.xz.cn/plugins/tablepress/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    The reason why this “Horizontal Scrolling” is not working is that the entire DataTables JS library was not initialized by your browser.
    The reason for this seems to be a JS scripting error that I can see in the browser console. It appears that that’s triggered in the WooCommerce plugin.
    Can you try again after temporarily deactivating that plugin?

    Regards,
    Tobias

    Thread Starter adn100

    (@adn100)

    Thx a lot. I have tried to deactivated Woo Commerce and the table works well now with JS lib features. Just wondering how can I change the width of a specific column and how can I wider the whole table size since it appears that my table only take 3/4 of the page and I want it to be something like 90%.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    good to hear that this helped!

    About the width of the table: The table is taking up 100% of the space that the theme gives to it here. Most likely, the remaining space on the right side is intended to be used for a sidebar. So, either your theme has a Page Template for “Full width”, or you’ll need to add one. For that, you should then contact the theme developer for help.

    Regards,
    Tobias

    Thread Starter adn100

    (@adn100)

    Thx a lot.

    Just one last question, how can I change the background color of the tile row and the font color in css since the default setting appears to be unclear on my site.

    My table id is ‘1’, shall I start with:

    .tablepress-id-1 {


    }

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    for the table head row background color, please see the TablePress FAQ at http://tablepress.org/faq/change-background-color-table-head-row/

    To then also change the font color, you would add

    color: #000000;

    to that code.
    And, yes, as your table ID is one, all CSS code for this table has to start with .tablepress-id-1

    Regards,
    Tobias

    Thread Starter adn100

    (@adn100)

    thx,all problems solved

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! 🙂 Good to hear that this helped!

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘datatable javascripts lib features does not apply’ is closed to new replies.