Oxygen Elements API render order #192
Unanswered
AlejandroDenche
asked this question in
Technical Help
Replies: 1 comment 1 reply
-
Your code is working fine for me. Here's the resulting structure on the front-end when I drop it into my example nestable element's render function: https://d.pr/i/fjw0xE. I suspect the issue lies somewhere else within your code. Note that as of 4.0 you'll need to use the new do_oxygen_elements function instead of do_shortcode. You can see an example of a 4.0 compatible nestable element at https://github.com/Spellhammer/example-oxygen-api-plugin/blob/main/elements/example.nestable.element.php. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi! Im trying to create my custom Oxygen Elements using the Elements API. Since it's not documented yet, I'm facing an issue that I home someone can help me with.
My element have the nesting enabled ($this->enableNesting() in init function). I can nest elements inside of it, but when I render them (echo do_shortcode($content)) they got rendered on the top of the elements (outside the div with content class). Is this the right behaviour? Is there any way to render inside some elements instead of the top? Thanks in advance!!
Beta Was this translation helpful? Give feedback.
All reactions