Home>Support>PageBuilder Hooks

PageBuilder Hooks

This is probably a niche request, but thought it was worth asking.

To get the markup we want for some themes, we have to insert a div into the source code for the panels. We have to structure it that way so that we can use the page builder to set section backgrounds, but still have a restricted content width.

At the moment we just edit the siteorigin-panels.php file, but obviously that means we have to go back and replicate the changes whenever we update the plugin. The section I’m talking about is within the siteorigin_panels_render() function, roughly around line 1100, where there’s a foreach:

foreach ( $cells as $ci => $widgets ) {
}

The only thing we add is a single before and a single afterwards.

Would it be possible to get some hooks built into the plugin? One before and one after that foreach would let us define the extra markup within the theme’s functions.php and not have to worry about updates, and wouldn’t have any effect on anyone else!

Thanks,
Joe

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 7 years, 6 months ago Alex S
    Hi, I Work Here

    Hi Joe,

    With SiteOrigin Page Builder 2.5 we’re greatly expanding the control user’s have over cells. As a result, now would be the best time to get something like this introduced. As a result, I’m going to submit a request to the development team about it.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More