Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].
Hi,
I have question. When I opening one page in modal via rest api, html is not initialized.
How i can, after load HTML initialize page builder objects?
It is big problem!
Hi Mantas,
Unfortunately, this isn’t possible without a fair amount of custom coding. Due to how the WordPress REST API is designed to work, the standard SiteOrigin Page Builder renderer isn’t designed to run prior to output. This means that you’re getting the raw fallback layout generated by SIteOrigin Page Builder rather than the full page builder layout. To render the layout directly you would need to write a JavaScript Renderer which I don’t recommend. Instead, I recommend using Ajax and making a request directly to WordPress and rendering the layout directly using siteorigin_panels_render (which uses SiteOrigin_Panels_Renderer).
Unfortunately, this is beyond the scope of what we can help you with on our forums, but you could hire a developer to implement this for you. We recommend using Codeable. You’ll be able to hire someone at an hourly rate to do this work for you.
Kind regards,
Alex
Thanks, but i find solution. After load my html from API, next step is initialize page builder objects, it is complicated, but is impossible.
Hi Mantas,
That’s great to hear! :)
Let me know how you go. If you have any questions about using the SiteOrigin Page Builder Renderer, let me know.
Kind regards,
Alex
My solution: https://www.kolibriofilmai.lt/
This website work over API.
Hi Mantas,
That’s awesome! Really good work mate. :)
Kind regards,
Alex