Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #195072

    hi,

    i have the following problem:

    when i manually add a table in a text-block using the word-press editor everything works fine in the beginning. But when i reopen the text-block the editor automatically inserts several   tags before the table.

    In the beginning I thought that would be the fault of the wordpress-editor and i tried out some others. But the problem didn’t disappear, no matter what editor I used. So I suppose, that there is some compatibility issue with the enfold theme…

    With best regards
    Philipp

    #195186

    Hi p_niedrich!

    Can you please post the “tags” that is appearing when you insert a table? Please switch it to Text editor when adding html tags. Note that the theme has its own Table element under Content element panel.

    Regards,
    Ismael

    #195247

    The tags are non-breaking spaces (&nbsp). I would use the Enfold-Table Element, unfortunately it doesn’t support images (would be a nice new feature)….

    #195728

    Hi!

    Are you working on a the Visual Editor? You should be working on the Text editor while editing HTML tags to avoid the spaces. The Table element does support images. Edit a row then insert the img tag:

    <img width="100" height="100" src="http://www.shop.hidra.com.tr/wp-content/uploads/image_6186_1.jpg">

    Don’t forget to define the width and the height.

    Cheers!
    Ismael

    #195913

    Hi Ismael,

    thanks for your tip with the tables. You were right of course, I didn’t know, that you can use shortcodes. However the layout possibilities of the enfold-table are limited. Then I would have to change the css of the table and that wouldn’t make things any easier, since I would have to change the table in general. Not just this specific one for which I need a very particular outfit. If I’m correct there is no possibility to assign an id or class to the enfold-table, right?

    About my problem:
    When I open the textblock the visual editor appears and displays everything nicely. When I switch to the code-editor, suddenly there are the non-breaking spaces. When I switch back to the visual editor I have blank spaces as well. Its very weired and seems to be like a bug.
    Of course I can delete the none-braking tags and save, but when I reopen, the same problem begins again.

    Thanks for your help

    #196024

    Hi!

    Non-breaking spaces are produce when you press “Enter” while working on the Visual Editor. Please try to work on the Text or code editor. Please try to wrap your table in a div tag.

    Best regards,
    Ismael

    #196050

    Hi,

    I know that pressing enter produces a none-breaking space in a paragraph tag, but I don’t press enter. It happens automatically.

    When I put the table in a div tag, the non-breaking spaces still appear, now between the div-tag and the table-tag…

    • This reply was modified 10 years, 11 months ago by p_niedrich.
    #197359

    Hey!

    As far as I know this is a result of the wpautop filter that attempts to add spacing tags and wrap your content to style it properly.

    The best and most typically suggested work around is to use a plugin for these kinds of elements so that you can insert the shortcode to output the data without the filters causing a conflict.

    Cheers!
    Devin

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Problem with tables in text-blocks’ is closed to new replies.