Support » Plugin: Category Editor » Broken markup in category editor

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author kevin heath

    (@ypraise)

    Hi, can you tell me where this broken markup is appearing and provide your theme name, please?

    If it’s a free theme I’ll download it and try a replicate the issue. If its a paid theme then there’s not a lot I can do.

    Thanks
    Kevin

    Thread Starter jqz

    (@jqz)

    It’s on the ‘Edit Category’ admin page, e.g. [host]/wp-admin/term.php?taxonomy=category&tag_ID=1&post_type=post. Theme is not relevant; it’s reproducible with the Twenty Twenty theme. I’ve double-checked with all other plugins disabled.

    Plugin Author kevin heath

    (@ypraise)

    Hi,

    Thanks for the info.

    I don’t see any issue myself. I’m running the latest version of plugin, the latest version of WordPress, and the latest version of 2020.

    Nothing appears broken and there are no nested tables that I can see.

    There are three table groups using <table class=”form-table”> for styling and grouping.

    1. The first three text fields name, slug, parent category which are WordPress defaults

    2. the enhanced text description box

    3. the category img and og image text fields.

    All are correctly nested so there should not be any broken markup that is impacting on the appearance of the edit page.

    I’m not sure what you edit page looks like but this is how it appears to me

    https://ypraise.com/wp-content/uploads/2020/11/Edit-Category-‹-Tackle-King-—-WordPress.png

    Thread Starter jqz

    (@jqz)

    The issue doesn’t affect the visual appearance of the category editor page for posts, but does affect the apparance of the product category editor page for WooCommerce product categories, because, as a result, additional fields added by WooCommerce are not in the table.

    However, the invalid markup can be seen in both cases via ‘Web Developer > Page Source’ in Firefox (see https://www.qzdesign.co.uk/filetransfer/category-editor-markup.png – the errors are highlighted in red by Firefox itself). The extra <table> start tag is not permitted here because it is not within a table cell (td or th) – it doesn’t nest the tables but causes the first one to be closed and a new one to be started. The additional </table> closing tag means the fields added by WooCommerce are not in a table at all.

    • This reply was modified 2 years ago by jqz.
    Plugin Author kevin heath

    (@ypraise)

    OK, thanks

    I’ll put it in the next update.

    Meanwhile you can go to plugin editor select Category Editor and delete the </table> on line 321.

    Thanks

    Kevin

    Plugin Author kevin heath

    (@ypraise)

    closing this thread now as solved

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Broken markup in category editor’ is closed to new replies.