• Resolved u84six

    (@u84six)


    I’m new to both wordpress and tablepress and I’m trying to fix a friend’s website. I wanted to change some custom styling in the cells of one of the tables, and noticed that in other tables of the website, there’s content like this:

    Some Text<span class=”some-class”></span><em>Some more text</em>

    All of the above works when I look at the website. The table cell texts has an icon after “Some Text” (that’s the the some-class does), and then the following text is emphasized. When I follow the same exact styling in another table’s cell, then save the table page, the preview shows the emphasized text. However, when I save the wordpress website and publish, the cell text in the table isn’t emphasized. Is this a caching issue or do I need to delete the existing table and insert the modified one? It would be unfortunate if I had to remove and add all over again for a simple text change in a cell.

    Another question: is it possible to override the global styling options (css) for a specific table? How would I do that?

    • This topic was modified 2 years, 4 months ago by u84six.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter u84six

    (@u84six)

    Ok, so I noticed in the global styles:

    table.tablepress .column-1 {
    font-weight: bold;
    }

    .tablepress em {
    font-weight: normal;
    }

    and now I want to remove the bold text from a specific table, so entered this:

    .tablepress-id-21 .column-1 {
    font-weight: normal;
    }

    But still, nothing ever changes! I’ve made several different changes to these tables and nothing ever updates. So frustrating

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi!

    Thanks for your post and sorry for the trouble!

    Indeed, it’s possible that caching is involved here. In order for me to investigate this further, please post links to the page where everything works and to the page where this is not working. Thanks!

    Regards,
    Tobias

    Thread Starter u84six

    (@u84six)

    Thanks for your quick reply, Tobias! I figured out what the problem was. The person who originally designed the website copied the generated table code into the Divi text box rather than using the shortcode. Doh! When I first looked at it (being both new to WP and Divi), I thought maybe it was just a different view of the table reference, but found that it was in fact just a copy. So that explains why my changes didn’t update!

    Thanks again for replying (to the noob)!

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    nice find! It likely wasn’t the person who originally designed the site who did this (at least not on purpose): There are themes with page builders that seem to be doing exactly what you describe automatically, when using features like “frontend editing”. Apparently they sometimes don’t realize that content came from a Shortcode and then replace the Shortcode with the generated HTML.

    Best wishes,
    Tobias

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

    Thread Starter u84six

    (@u84six)

    Well, that’s interesting. When I create a new Text module using Divi Builder and then click on the button to add a Tablepress table, it inserts the shortcode. But thanks for the warning. I’ll keep an eye out for this weird side effect. I will be redesigning this website from scratch, so I’m sure there’s going to be some hiccups along the way (good ol’ web development) 🙂

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    chances are that you’ll no longer be able to reproduce this issue (I’m also seeing it less often). Maybe those themes/page builders (I don’t remember if it was Divi or a different one) fixed that issue already. And it’s actually not about adding the Shortcode initially, but only when editing pages that have a table in some special mode.

    But yes, website redesigns have their intricacies 🙂

    Best wishes,
    Tobias

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

The topic ‘Table contents aren’t change’ is closed to new replies.