Home>Support>Change body class if post is using Page Builder layout

Change body class if post is using Page Builder layout

I’m adding Page Builder to an existing blog. I would like to use the Page Builder layout for all future posts and leave all past/legacy posts untouched (using standard text editor).

In order to do this it would be great if I could use a different layout/template for legacy posts and new Page Builder posts. Is there any way to know whether a post is using Page Builder or not?

There is currently this, but the class is always on the body tag, regardless of whether the page has standard content or Page Builder content so it’s not entirely helpful.

<body class="siteorigin-panels">

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

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More