Kevin Batdorf
Forum Replies Created
-
Hey, yeah I saw darklup classes and just assumed it was another highlighting plugin. They are likely doing something to affect the height which prevents the code block from being able to measure it on page load. Not sure there’s a workaround without me refactoring the code to measure every time you click the button.
Let me know what they say though
It just sems to be unable to properly calculate the height of the line before it collapses it. Seems like you have another code highlight plugin, right? could you try disabling it and see if that works? If so then I can see about adding something to make both play nicely together. If not, could you just try temporarily deactivating other plugins to see which one is conflicting? It’s got to be a theme or plugin conflict so easier to rule out plugins first.
Hey Chris,
Are you able to share a page with it broken that I can look at? Note that any URLs you share here can’t be removed later. If that’s a problem you can open an issue on GitHub instead.
Otherwise do you see any errors in the browser console? My guess would be it’s something cache related but it’s really hard to tell based on the above.
I updated it now so that when you delete the css it will remove the class. Can you try it out? You might need to add something in the textarea and delete it once.
I thought you meant after changing the id. What do you need to delete it for? I can probably add something to remove it if the styles are empty. Is it just to clean things up?
HI, I really apologize for the late reply. This got lost in my wall of open tabs. This should be fixed though in the recent release. Are you still using the plugin? If you’re still having issues let me know.
Forum: Reviews
In reply to: [Pattern CSS - The CSS Editor For Blocks] Essential for pro developersHey I appreciate the review! And always happy to help when I can. Reach out any time!
Hey @arcaswebdesign I just pushed a release with a fix for this! Thanks again for reporting. If something still isn’t working let me know.
Sure that would be great. Can you send it to my username here @ gmail?
HI,
I’ll try to install both today or this weekend and see if I can reproduce it. Can you link to the plugin/block? Is it a free plugin?
Forum: Plugins
In reply to: [Code Block Pro - Beautiful Syntax Highlighting] The Block has been updatedOkay so to clarify, you add code to the code block on the live server, it saves properly and works on the front end. But when you go back and edit the page, you get the warning that the block has an update, and accepting that update results in an empty block.
That indicates that something is transforming the code block in the editor during the initial rendering of the editor itself. Some plugins might be adding meta data or attempting to format other blocks (depending on the context of the plugin).
Another follow up question. If on the live site you only add one single code block to a page and nothing else (and delete any default blocks maybe your theme adds automatically), does it work then?
If still not working, and you’re confident the staging server matches the live server, could it be an mu-plugin from your hosting company perhaps? You can check here: https://share.cleanshot.com/P7mQ43v6
Otherwise we’d have to debug on the live server to see what’s different there vs your staging server. Something must be different.
Forum: Plugins
In reply to: [Code Block Pro - Beautiful Syntax Highlighting] The Block has been updatedDid the code block work at some point while testing your staging site or did it fail at every step?
I created a new post with some code blocks and then I re-enabled all my plugins one-by-one again until all my plugins were re-enabled again.
Especially during this step above. Did it ever work, then stop working?
If it never worked on the staging site, then it could be a conflict with kadence. But did the code block ever work on the live site (like last week) or did you only start using it yesterday?
Forum: Plugins
In reply to: [Code Block Pro - Beautiful Syntax Highlighting] The Block has been updatedYou could try just disabling all plugins at once. if you have the ability to do that without breaking things for everyone. Then you could at least validate its a plugin conflict. Do you have a lot of plugins? I could also install them locally if you have a list you can provide. It could be a conflict with a theme function too though, or a “mu-plugin” (which sometimes are installed and don’t show up in the plugins list)
Forum: Plugins
In reply to: [Code Block Pro - Beautiful Syntax Highlighting] The Block has been updatedThe line at the top shows
<div class="wp-block-kevinbatdorf-code-block-pro"></div>which means everything inside the code block is being stripped away by something else in the editor. Do you have other blocks added to this page? What fi you create a page and only add the code block? Can you debug that to isolate when exactly it breaks?Forum: Plugins
In reply to: [Code Block Pro - Beautiful Syntax Highlighting] The Block has been updatedHi, yes the browser console. Here’s the instructions for Chrome. Make sure you’re on the “console” tab and reload the page.
https://developer.chrome.com/docs/devtools/open
You said you found something though. What did you find?