Hi,
whenever i create a Text Block with the advanced layout builder to enter some HTML it does not keep the formatting for later editing.
When i create a table that i want to edit later like:
<table style="width:300px">
<tr>
<td>Jill</td>
<td>Smith</td>
<td>50</td>
</tr>
<tr>
<td>Eve</td>
<td>Jackson</td>
<td>94</td>
</tr>
</table>
After i saved this Text Block and then want to edit it i get:
<p> </p><p> </p><p> </p><p> </p><table style="width: 300px;"><tbody><tr><td>Jill</td><td>Smith</td><td>50</td></tr><tr><td>Eve</td><td>Jackson</td><td>94</td></tr></tbody></table>
That increases the time i’d need to edit something like 100 times depending on the size.
Is there a way to fix that?
All i can do is to create a text file on my computer everytime i create a page and keep it updated everytime i want to make changes.
That is really annoying.
Hey Flikk!
Yes, that is correct. WordPress in general will modify any html formatting unless you always keep your view on the text tab.
For code heavy sections you should use the Code element instead.
Best regards,
Devin
Hi,
i tried using the Code element and when i go back to edit it i get:
<table style="width:300px">
<tr>
<td>Jill</td>
<td>Smith</td>
<td>50</td>
</tr>
<tr>
<td>Eve</td>
<td>Jackson</td>
<td>94</td>
</tr>
</table>
It is way better then the Text Block element but still removing all the whitespaces infront of each line.
Guess i still have to save larger code sections in text files.
Or is there any other way?
Hey!
I recommend to use the table shortcode or http://tablepress.org/ if you want to create tables.
Cheers!
Peter