• Resolved peterdeegan

    (@peterdeegan)


    Tobias,

    Sorry to bother you but we’re stuck with CSS formatting.
    We can’t get Custom CSS to work on the linked table, the full CSS is below.
    We’ve looked at the page via Inspect — the CSS tags look correct but we can’t see the TablePress Custom CSS in the loaded resources (but might not be looking in the right place).
    We also tried adding a test CSS into the child themes Styles.css — no luck.
    ? Is there a problem with the shortcode? Perhaps it’s too long? That shortcode is cutoff on some TablePress admin pages.
    Overall question — is it possible to format by column? For example change the font-size, font-family etc. The FAQ examples are all by row – does that mean column formatting isn’t possible (except width).
    We could use in-cell <span … coding but we’d like to avoid that.

    Thanks,

    Here’s the CSS in the Custom CSS box (which is enabled).

    .tablepress-id-DictateVC {
    width: auto;
    margin: 0 auto 1em;
    }

    .tablepress-id-DictateVC .column-1 {
    width: 250px;
    }

    .tablepress-id-DictateVC .column-2 {
    width: 75px;
    font-family: fixed;
    font-size: 16px;
    font-weight: bold;
    vertical-align: middle;
    }

    .tablepress-id-DictateVC .column-3 {
    width: 200px;
    font-size: 12px;
    font-style: italic;
    }

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    I’m not really sure, but it seems that either the use of WP Rocket, or the fact that you seem to have renamed/moved the wp-content directory, might play a role here.
    Can you maybe try turning those off?

    As for formatting by column: Yes, this is possible, and your last two chunks of CSS code are exactly how this is done ??

    Regards,
    Tobias

    Thread Starter peterdeegan

    (@peterdeegan)

    Tobias,

    Always good to hear your words of wisdom.

    Changing wp-content to another name seems to be a common WP security measure.

    WP-Rocket or other caching is always a possibility. I’ll try that and hopefully be able to report back.

    Peter D/

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    > Changing wp-content to another name seems to be a common WP security measure.

    To be honest, I see it very, very rarely, and it usually creates more problems than it solves.

    But yes, please let me know what you find after turning the caching things off, thanks!

    Regards,
    Tobias

    Thread Starter peterdeegan

    (@peterdeegan)

    Information:

    WP-Rocket
    Disabling the option: Optimize CSS delivery

    helped get the TablePress Custom CSS to work with the web page.

    There’s still caching issues, later changes to Custom CSS don’t appear. But it’s better than what we had … viz nothing!

    Thanks again, hope this info might help someone else.

    Peter D/

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    great! That’s good to hear!

    The remaining caching might browser caching. It might be sufficient to force-reload the page (Ctrl+Shift+R) to clear that.

    Best wishes,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Formatting by Column’ is closed to new replies.