• Resolved Leo.Lin

    (@bi1012037)


    When I load this plugin and try to browse articles, I notice that the timestamp is always forced to display first. Is there any way to delay showing the table until after sorting, to avoid the flashing issue?

    I only need the parameters title, date, and categories; I don’t want any other data to appear.

    [posts_table columns="title,date,categories" filters="true"] 
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Leo.Lin

    (@bi1012037)


    I have found a CSS + JS solution to solve this flickering issue.

    posts-data-table-main.css

    table.posts-data-table {
        ...
        ...
        opacity: 0;
    }

    Add this kind of JavaScript logic inside function.php.

    var postsTable = document.querySelector("#posts-table-1");
    if (postsTable) {
        setTimeout(function() {
            var timestampTh = postsTable.querySelector('th[data-name="timestamp"]');
            var titleTh = postsTable.querySelector('th[data-name="title"]');
            if (titleTh && !timestampTh && postsTable.style.opacity !== "1") {
                postsTable.style.opacity = 1;
            }
        }, 100);


    The final screen recording result.


    • This reply was modified 7 months, 2 weeks ago by Leo.Lin.
    Plugin Support Barn2 Plugin Support

    (@barn2pluginsupport)

    Hi, @bi1012037.

    That’s great news! I’m glad to hear that you found a CSS + JS solution to solve the flickering issue. I will forward this to our development team for review.

    If you have any other questions or concerns in the future, don’t hesitate to ask.

    Best regards,
    Adrian

    Plugin Support Barn2 Plugin Support

    (@barn2pluginsupport)

    Hi, @bi1012037.

    Our developer has confirmed that they were able to replicate the issue on the free version but not on the premium version of the plugin. They will be addressing this issue promptly.

    If you have any questions in the future, please don’t hesitate to ask.

    Best regards,
    Adrian

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘When loading a table, the timestamp flashes’ is closed to new replies.