• Resolved foochuck

    (@foochuck)


    I’m trying to figure out something quite simple. This plugin generates tables on my WordPress pages & posts. At the bottom of every table there is a <br /> tag.

    I need to stop the plugin from generating the break tag at the bottom of every table. I have searched through the plugin’s documentation and php files but have not been able to figure out where that tag gets generated.

    This is probably an easy fix, but I can’t find it.

    Could someone help me out with this?

    -foo

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter foochuck

    (@foochuck)

    *bump*

    I noticed that when you use this plugin and add more than one table on a page, it automatically generates the <br /> tag under each table and I need to prevent it from doing that!

    -foo

    TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your comment.

    WP-Table Reloaded does not add line breaks (<br/>) at the end of the table. So, that piece of code must have a different source in your case.
    My idea is that it comes from the way you have the Shortcode in the page. It should be in its own line, and the line below and above the Shortcode should be empty. That should lead to no <br/> tag being inserted by WordPress’s content filter.

    Can you try that? If it it does not work, please post the code in the immediate vicinity of the Shortcode in your post, and the URL of the page with the table.

    Best wishes,
    Tobias

    Hello Tobias,

    I am trying to create and index from the pages contained in my site. I started doing it with a plugin called azindex but, since it does not offer the possibility to exclude some pages I don’t want from the index I thought replacing it for the moment with a simple table. Only, there is I have another problem: there is a huge space between the first line of the table and the top of the page. The more rows and columns are added, the space increases. At first I tried modifying the css associated with the page design. Still doesn’t work. When I look at the generated html code there is a <br \> tag added after every <td> and <tr>. I have no idea where it comes from. I tried using your WP-Table but the same thing happens. There are only 2 plugins activated: WP-Table and akismet so there should be no interference. The address of the concerned page is:

    https://deviens.fr/bibliotheque/

    I’ve put on it the tow versions of the table. I’m looking for the problem myself and trying to understand the wordpress code and where it might come form but I would greatly appreciate any help you could give. Thanks in advance. Best regards,

    Paul.

    Hi,

    I don’t see any <br/> tags added to the page by WP-Table Reloaded that add space above the table. So that seems to come entirely from your first table which does not use the plugin.

    There is however some space added by WP-Table Reloaded in those of your table cells where you are using HTML to generate your list. Those <br/> tags are the result of the linebreaks that you have in your table cells. So, to remove the space within the cells around your lists, add the HTML code without any manual linebreaks. There should only be those added by the browser to fit the text into the cell, but not manual ones. Can you check that?

    Regards,
    Tobias

    Thank you very much for your extremely rapid answer. I’ve checked the code inserted in the cells of the WP-Table Reloaded, there is no tag. Taking the example of the first 2 lines, the third column, the code inserted manually is:

    <font face= "agency fb" color="#000000" size="4"><b>C</b></font>

    and respectively

    [Code moderated as per the Forum Rules. Please use the pastebin]

    There are not as many br’s as in the case of the first table (independent of WP Table Reloaded) but there still are some of them on some lines. Is there something that can be done to eliminate them completely ?

    Once again, thank you very much for your help. Best regards,

    Paul.

    Hi,

    I was not actually refering to <br/> tags in the cells. You will not see the <br/> tags in the backend, as they are the result of “regular” line breaks in the text cells. And those should be eliminated. This is especially important when using HTML in tables (as you are doing with the lists).

    So, instead of having

    <ul>
    <li><font face= "agency fb" color="#000000" size="4"><a href="https://deviens.fr/neil-strauss/">STRAUSS, Neil</a>
    </font></li>
    <li><font face= "agency fb" color="#000000" size="4"><a href="https://deviens.fr/david-shade/">SHADE, David</a>
    </font></li>
    </ul>

    in the cell, you must use

    <ul><li><font face= "agency fb" color="#000000" size="4"><a href="https://deviens.fr/neil-strauss/">STRAUSS, Neil</a></font></li><li><font face= "agency fb" color="#000000" size="4"><a href="https://deviens.fr/david-shade/">SHADE, David</a></font></li></ul>

    which does not have line breaks.

    Regards,
    Tobias

    Thank you very much, sorry for being late with my answer, I was away. I’ll try it and let you know if it works. Thanks for everything.

    Best regards,
    Paul.

    Hello Tobias,

    Once again thanks for your help. If I remove the new lines, it works indeed, they were converted in html tags. Someone also gave me the answer for the wordpress tables, there was a function in formatting which was adding the br tags. Putting br to 0 in that function solved the problem.

    Thanks for all, best regards.

    Paul.

    Hi Paul,

    thanks for the confirmation!

    Best wishes,
    Tobias

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Plugin: WP-Table Reloaded] Remove Break Tag From Bottom of Tables’ is closed to new replies.