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].
We have installed the Siteorigin page builder plugin on our clients website which uses the ACF Custom fields plugin, is there a way to add the custom field using the Site builder?
Is there any way of also adding our custom HTML code and removing the default HTML added from the page builder?
Hi Craig,
Thanks for getting in touch. Doing either of these is quite complicated and you’ll need quite a lot of familiarity with writing PHP. Due to it being a developer-level type question, we’re really only able to provide suggestions on how to proceed here. It may be easier overall to create or modify widgets using the Widgets Bundle framework directly.
You can add ACF fields directly to any widget that will show in Page Builder by selecting the relevant widget you would like to appear when adding the field via ACF itself, or by using PHP. You’ll then need to handle the values using get_widget_values.
Yes. You can do this at the widget level by using the siteorigin_panels_the_widget_html filter. You can see an example of this here.
Kind regards,
Alex