soflyy / oxygen-bugs-and-features

Bug Reports & Feature Requests for Oxygen
https://oxygenbuilder.com/
316 stars 31 forks source link

Code Block Custom CSS Not Rendering in Oxygen Editor #197

Open TnowL opened 5 years ago

TnowL commented 5 years ago

Describe the bug If you have CSS in Code Block and that Code Block made reusable. When you reuse it as single use then the CSS in the Code Block doesn't render inside Oxygen editor. Frontend works fine.

Have you tried all the steps at https://oxygenbuilder.com/documentation/troubleshooting/troubleshooting-guide/? Yes

Are you able to replicate the issue on a Sandbox install at https://oxygenbuilder.com/try? http://spotless-newt.w5.wpsandbox.pro?upass=rj97PUI6lfV0

TnowL commented 5 years ago

I forgot to mentioned the page that I created. http://spotless-newt.w5.wpsandbox.pro/reusable-code-block/

KittenCodes commented 5 years ago

Reproduced in 2.4.1.

alexanderkladov commented 4 years ago

It's not rendering on the front-end either, even in the latest Oxygen version.

Edit: I was talking about Custom CSS specifically. The Code Block doesn't have to be re-usable either, Custom CSS won't render anywhere.

fscriven commented 3 years ago

When using a code block with CSS as a reusable part (non editable) there is no rendering (front end or back end) as things stand.

CCDevelopment commented 3 years ago

I had this issue with a code block of JS that was not rendering on the front end. I was able to resolve this issue by editing the re-usable part in Oxygen and creating a new code block element, copying my JS over, deleting the old code block, save, and the new code block rendered correctly.

switchupcb commented 2 years ago

I can confirm that this issue occurs with single-use reusable code blocks.

Single Re-Usable Element (points to):

CSS, JS, PHP edited
rgb(0,0,0,.1) -> #00000000 on Frontend

Solved by deleting the old code block, but the code block's literal CSS settings (set from Oxygen and NOT the code) aren't applied to the code block.