• Resolved llaughy

    (@llaughy)


    I am loving this plugin, but I am getting validation errors on the generated HTML for the tables. There is a paragraph being started, and then the table is inserted in the paragraph, and then the paragraph is ended. HTML looks like this:

    <p id="top" /><strong>
    <table id="wp-table-reloaded-id-10-no-1" class="wp-table-reloaded wp-table-reloaded-id-10"> . . .
    
    . . . </table>
    </strong></p>

    Is there some way to correct this so that my pages with tables will validate? I can’t find where this “<p id=”top” />” is being generated but it may have something to do with the description section of the table. I took out my description and changed the settings so that the description isn’t shown, but this bit of HTML is still being inserted. Thanks for any help!

    Using version 1.9.1

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    the <p> is probably added by your theme. To check that, can you temparily switch to the WordPress Default theme and check if that validates?

    The <strong> might be coming from copy and pasting the Shortcode into the post. Can you go to the “Edit” screen of your post/page and check what you see in the “HTML editor” (and not in the “Visual editor”)?

    Regards,
    Tobias

    Thread Starter llaughy

    (@llaughy)

    Thank you Tobias for your quick reply –

    You are correct about the <strong> coming from the copy/paste of the shortcode, and I was able to eliminate that.

    The <p id="top" /> is still present when I switch to the Twenty Ten theme, so I started dissecting my page template and found that if I removed this from the page <?php the_content('Continue Reading &raquo;'); ?> the stray code disappears. I found information here:
    Link Jumps to More or Top of Page and added the suggested code to my functions.php file – which removed the <p id="top" /> but not the closing p. Will continue to see what I can do to clean this up.

    Thank you very much for pointing me in the right direction and helping me sort this out!

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    then likely the <p> is added by another plugin, likely through the the_content filter hook.
    The WordPress core uses a <span> for the “More” link, so that’s not where it is coming from.
    Also, I don’t recommend to add the code that you added, as the page says that it should only be needed for older WordPress versions < 2.7.

    Can you try to find which plugin adds this, by temporarily deactivating them (and while using the WordPress Default theme)?

    Regards,
    Tobias

    Thread Starter llaughy

    (@llaughy)

    Hello Tobias –

    That did the trick – thank you so much for helping! I found it on the first plugin I deactivated – Inline Posts – and now the pages are validating perfectly!

    I really appreciate your help with this, especially when it isn’t even your plugin causing the error. I am thrilled with WP-Table Reloaded – it is such a powerful tool to add to WordPress.

    Many, many thanks!

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! ??

    Best wishes,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Validation issues with generated HTML:’ is closed to new replies.