Bug – Style shows in editor, not applied in render
-
Hello,
I’m developer of multitude of WP sites, and lately encountering more often that EditorPlus styles are not being applied inside page, resulting in need of plain CSS solutions, or other plugins.
Style is applied and saved inside gutenberg editor, but in multiple installations, it just does not affect anything. Just now, was applying padding
And go inside site – no padding is applied. Finding “eplus-styles-uid-f9998e” class applied to the element, but no style definitions present inside “editorplus-generated-styles-header” block. It is not empty tho, there are couple of defintions there, so it is not that it is not working completely, just that most of them are missing, not generated.
Digging deeper, I found unused “generate_styles_from_blocks()” function, but, I guess, “render_styles()” is the important function. Please, provide guidance how to debug your code, I am capable, but I don’t have much time to invest learning your solution.
Just tried out WP playground, installed latest plugin version – as soon as I make that same change, it just tells about malformed JSON or invalid submit and can’t save post.
To reproduce:
- Go to plugin page and download it https://www.ads-software.com/plugins/editorplus/
- Go to https://developer.www.ads-software.com/playground/
- Create new instance, install editorplus plugin
- Create new page
- Insert “row” block, add couple paragraphs inside
- Add unlinked padding with rem units inside, try to save
- See console errors
- Try doing that in pages/posts, also same issue
- The topic ‘Bug – Style shows in editor, not applied in render’ is closed to new replies.