• Resolved alex845

    (@alex845)


    Hi,

    Great plugin, use it for years already.

    I have a very basic setup:

    [posts_data_table scroll_offset=”50″ sort_by=’title’ columns=’title,date’ rows_per_page=’50’]

    I would like to have the option that visitors can sort on date, without the dates being visible.

    As a temporally workaround I changed the color of the dates into my background color:

    table.dataTable tbody td {
    color: white;
    font-size: 18px
    }

    Works fine, the date is invisible now but… my table is a bit too long I’m afraid (4200+ posts)

    As a result processing off the page takes quite a lot of time, and during this period, users still see the dates in the normal colour my theme is using.

    So the question is if there is a magic trick to make the dates invisible from the beginning?

    • This topic was modified 5 years, 1 month ago by alex845.
    • This topic was modified 5 years, 1 month ago by alex845.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter alex845

    (@alex845)

    Figured it out, had to add some more css to the page:

    body, .entry-content {
    color: white;
    }

    Plugin Support E.J. Padero

    (@barn2support)

    Hi, @alex845.

    Thanks for getting in touch and for your follow-up/update. Yes, you could achieve it that way, if it works for your requirements. Well done on the workaround!

    I’m afraid in order to be able to sort the date column, it has to be displayed/shown in the table so that users can click on the column heading’s sort arrows.

    Please could you check if this CSS selector (which I modified from the pro version of the plugin, Posts Table Pro) will work for you:

    table.dataTable tbody td?.col-date

    I hope this helps. Let me know how it goes.

    Best regards,

    Thread Starter alex845

    (@alex845)

    Thanks,

    Yes, it works but you still need:

    body, .entry-content {
    color: white;
    }

    The problem seems to be that the post table css loads late, so during the processing of the table (which takes ages in my case), the normal css is still in charge, so you see the dates – see https://imgur.com/a/geBZvi7

    Best regards,
    Alex

    Plugin Support E.J. Padero

    (@barn2support)

    Hi, @alex845.

    Thanks for the additional info to help clarify the issue.

    The delay in loading the Posts Table CSS is due to the amount of data for all the 4200+ posts that gets pulled from your site’s WP dbase into the table on page load. All the data in the table is being loaded into the web browser when the page first loads.

    We addressed this performance issue in Posts Table Pro version to take the strain off the web browser by adding loading the table data values one table page at a time via the Lazy Load feature. Please see: Lazy load option for tables with many posts.

    As for this free Lite version, aside from the workarounds already implemented, I’m afraid there’s not much else I can suggest and all I can do is apologize and hope you understand.

    Should you have any other concern that I may help you with, please let me know. Until then, I will mark this thread as resolved.

    Best regards,

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Hide date’ is closed to new replies.