• Resolved dannio

    (@dannio)


    If you apply styling on a block, and also have additional classes, once rendered, it will remove the first letter of the additional class.

    e.g “is-large” will be outputted as “s-large” instead.

    Steps to recreate:

    • Apply class to <p> block
    • set a margin on <p> block using editor plus
    • Preview/update and view page
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Munir Kamal

    (@munirkamal)

    It’s quite unusual. This issue should not be occurring, and I’m unable to replicate it as well. To troubleshoot, I recommend disabling all other plugins and testing again. This will help us ensure that the problem is not caused by one of the plugins you have installed.

    Thread Starter dannio

    (@dannio)

    @munirkamal This is a completely custom theme, and pretty much no plugins except a few backend ones like redirection and ACF. As soon as I turn editorplus off, it seems to work as intended and the content in ADDITIONAL CSS CLASS(ES) loads fine.

    Note: it shows up in the editor, but when checking the page via inspect on the live page, the classes are missing the first character.

    • This reply was modified 1 year, 4 months ago by dannio.
    Plugin Author Munir Kamal

    (@munirkamal)

    I’m unable to replicate the issue you’re currently experiencing. To help you troubleshoot, I recommend trying a couple of steps. First, you can test by changing your theme and disabling all plugins, including ACF. It’s possible that something in your specific WordPress installation is causing the problem.

    Alternatively, to further investigate the matter, you may also try testing EditorPlus on a fresh sandbox or demo website with the default WordPress theme to determine if the issue persists.

    By following these steps, we can narrow down the cause of the problem and find a resolution more effectively.

    Thread Starter dannio

    (@dannio)

    @munirkamal ah you’re right. There’s a function in the theme adding in classes to core blocks which is interfering with the eplus editor as it’s trying to do the same thing. In that case i’ll just mark this close then.

    Thanks a lot for the advice.

    Plugin Author Munir Kamal

    (@munirkamal)

    Glad to hear that.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Editor removes first character of additional css classes on render’ is closed to new replies.