Plugin Support
Fotis
(@markwaregr)
Hi there,
I am afraid this is not possible. Do you have any issues using HTML mode?
Thread Starter
kodame
(@kodame)
I don’t mind using HTML mode in cases like this except when I attempted to do it with your block, and switched back to Visual mode, Gutenberg wants to auto-correct the code (which removes the class I added)
Edit: Forgot to mention, it needs to go back to Visual mode simply because HTML mode is a wall of minified code which is too difficult to manage
-
This reply was modified 4 years, 8 months ago by
kodame.
Plugin Support
Fotis
(@markwaregr)
Hi @kodame thank you for reporting this. Can you save without switching to visual mode?
Thread Starter
kodame
(@kodame)
Sorry for the late reply, for whatever reason I’m not getting notified when you leave a message
As soon my mouse touches anything else on the page, I get the Gutenberg warning which leaves me no choice but to either recover the block (which squashes my edits), or convert to an old-style HTML block (i.e. classic editor)
That said, even if I could save in HTML mode, the block becomes unusable given the code is converted into a one long string
Ultimately, it would be better if I could somehow target the accordion panels individually with external CSS, can you think of as way to do this?
Plugin Support
Fotis
(@markwaregr)
Hi there,
Currently I am afraid there is no solution with this. Perhaps you can try a frontend solution using JS and targeting the selector you want to add.
I can help you with this is you provide a URL with the link you need to change.