This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Change body class if post is using Page Builder layout

10 years ago

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.

Need fast email support? Get SiteOrigin Premium

Have a different question or issue?

Start New Thread