I’d like to report that using the colspan
attribute in a td/th tag inside an accordion (using the html editor) doesn’t work (using browser inspect feature shows that no attribute is added at all).
I currently fixed it by adding 'colspan' => true
in the td/th keys in the get_kses_array
function but that fix will probably go away whenever the plugin is updated.
I haven’t tested other html attributes.
]]><table style="font-family: Helvetica; letter-spacing: normal; text-indent: 0px; text-transform: none; word-spacing: 0px; -webkit-text-stroke-width: 0px; border-collapse: collapse !important;" border="0" width="100%" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td class="section-padding" style="padding: 15px;" align="center" bgcolor="#f4f3f0">
<table class="responsive-table" style="border-collapse: collapse !important;" border="0" width="500" cellspacing="0" cellpadding="0">
<tr>
<td class="" align="center" bgcolor="#f4f3f0" width="100"><a class="" href="page" target="_blank" rel="noopener">
<img class="" style="border: 0px; height: auto; line-height: 16px; outline: none; text-decoration: none; display: block; color: #4d4d4d; font-size: 16px;" src="logo" alt="Logo" width="100" height="100" border="0" /></a>
<table style="border-collapse: collapse !important;" border="0" width="100%" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td class="padding-copy" style="font-size: 16px; line-height: 25px; color: #4d4d4d;" align="left"><b>Dzień dobry</b>, pojawi? si? nowy formularz.</td>
</tr>
</tbody>
</table>
</td>
</tr>
</table>
</td>
</tr>
</tbody>
</table>
It’s a little more complicated on page, but this is enough. Before update, <td> with “Dzień dobry, pojawi? si? nowy formularz” had background color and was aligned to center, thanks to grandparent <td> before (<td class=”” align=”center” bgcolor=”#f4f3f0″ width=”100″> – this one). After update, it stopped working and there’s no background and center align on “Dzień dobry (…)” td. It seems that after update, there’s no option to nest one <td> in another, but i’m not sure what’s going on.
Could you tell me what changed after last update and how can I make this work like before?
<td>
elements as cells in the table header (<thead>
) instead of <th>
elements. <th>
elements usually make more sense semantically.core/table
block also uses <th>
instead of <td>
for the table header cells, hence conversion between these two block types would be easier as less CSS selectors are needed.
]]>I would like to add a h2 on all cell of a specific column (not just the top header)
but i don t understand how i can acheive this within wordpress or table press .
for example in the page example, the “enginecode” column should be referenced as h2 titles.
Is there any option / plugin / syntax i can use (i m not a developper sorry)
thanks
]]>My generic include file zeros all margins and padding, save for floats, list items, blockQuotes and I’m sure there’s one I’m missing; those I define. I’m frustrated by the gaudy vertical spacing every line receives whether it is inside a <td> or between blocks; yes, cellPadding=0 and cellSpacing=0 were used. One thing about that is the zeroing of margin and spacing I do happen in the include file so it can be overridden by the page CSS. Yes, since I remove all vertical spacing, I add classes to ad it in when I want it back. Another thing, I don’t see anywhere to change to width of a column in the table. When I write them I size them when all the data is entered. Again, click and drag makes sense for your theme of using non-programmers.
I used tables on a recent post. When I do I’m liable to need the colSpan=x attribute. Not available to use on the table creation. If I could click separation lines to define col/rowSpans that would work with the WordPress theme of letting non-programmers to the content arranging.
Also, don’t know where to find access to font style and size for the theme. At the very least to know where I’m starting from, at best to alter the theme from the beginning.
Are any of these features coming out in the new release I just saw today?
Can anyone think of anything else think of something that would help table construction and formatting?
====
That’s the one I forgot sup & sub definitions.
]]>It would be good to add option to color specified text in table. And it would be good to add option to make some separator in table.
Have a nice day. Ich wünsche dir einen sch?nen Tag
]]>I am a quite experienced Worodpress designer/developer but havnt worked so much with Woocommerce. Now I have a project where a am about to build a hightly customized webshop using Woocommerce.
The first thing that struck me was that Woocommerce still (in 2018) uses old fashioned html tables to structure different kind of web content which makes customezied styling much more difficult, limiting and time consuming. Why?
Today there are css tools like flex-boxes and grids which are much more flexible making custom style customization a breeze compared to the old and outdated tables.
Is there a way to get the web content that different functions generate without the terrible table structures or are I stuck with them and just have to try styling them the best way possible?
]]>I can get the customization with css working locally on my computer, but when I try to implement on the site, it is not seeming to work.
I mainly just want the following style applied to my table:
<style>
table, th, td {
font-size:12px;
font-family:tahoma;
}
</style>
I have gone back and forth putting the style into page and into the custom plugin section. Then I tried using the id:
.tablepress-id-2 th td {
font-size: 10px;
font-family: “tahoma”, arial;
}
and/or using the shortcode in the page to get it to work and I can’t seem to get it right. I tried stripping everything down but I can’t figure it out.
Any help would be appreciated. Thanks so much, Beth
]]>Thanks,
Dan
.tablepress th,
.tablepress td {
border-collapse:collapse;
padding: 2px 2px !important;
}
]]>