• Resolved JustinBBC

    (@justinbbc)


    Why does WP think it needs to add in-line CSS styling to the many tables on my site? E.g.,

    <tr style="height: 48px;">
    <td style="width: 176px; height: 48px;"><a href="link to file">link desc</a></td>
    <td style="width: 392px; height: 48px;">more text</td>
    </tr>

    Even within the same table, the styling may be different for each row. Sometimes it will even add:
    target="_blank" rel="noopener noreferrer"

    Does anyone else have this problem?

    I wish WP would leave my markup alone!

    • This topic was modified 6 years, 4 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic
Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator t-p

    (@t-p)

    It is your theme that manages the visibility of anything on your site.

    Please identify exactly which theme you are using and then post in that theme’s dedicated forum via its page so the theme’s developers and support community can help you with this.

    Thread Starter JustinBBC

    (@justinbbc)

    I have a custom theme.

    You are saying that the theme modifies the HTML code that I add in the admin console -> edit page?

    Moderator t-p

    (@t-p)

    code that I add in the admin console -> edit page?

    To rule out any theme/plugin conflict, try to disable all plugins, and use one of the default (Twenty*) themes. If the problem goes away, enable them one by one to identify the source of your troubles.

    If you can install plugins, install “Health Check”: https://ww.wp.xz.cn/plugins/health-check/ On the troubleshooting tab, you can click the button to disable all plugins and change the theme for you, while you’re still logged in, without affecting normal visitors to your site.

    Thread Starter JustinBBC

    (@justinbbc)

    Thanks for the tip, t-p. It looks like I have a table editor plugin that causes the problem. It works fine until you copy-paste a previous row to create new rows (I’m 99% sure that is what the person editing the page does).

    Without the plugin, editing a table visually is impossible, as far as I can tell. I don’t see a native way to do any table manipulation in WP visual editor.

    Do you know of a way?

    Moderator t-p

    (@t-p)

    There are many plugins containing terms like table editor:
    https://ww.wp.xz.cn/plugins/search/table+editor/

    Please identify exactly which plugin you are using and then post in that plugin’s dedicated forum via its page in the Plugin Repository so the plugin’s developers and support community can help you with this.

    OR, let me know which plugin so I can direct you accordingly.

    Thread Starter JustinBBC

    (@justinbbc)

    I already posted a question on the author’s plugin page. Thanks for the help.

    Moderator t-p

    (@t-p)

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘styling is added to table HTML’ is closed to new replies.