I’m running 2.2 and I’m seeing “siteorigin-panels” as a class applied to the tag regardless of whether the page is using the Page Builder or not. Is that intentional? If so, is there a way to add a unique class to the body if the page is using the Page Builder?
Modify class on if page has Page Builder layout
This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.
The forum stripped out “body” from the title and message.
It should be “Modify class on body if page has Page Builder layout” , and “…a class applied to the body tag…”
You can add classes to any widget and / or row in Page Builder. Go in to the screen where you would edit that widget or row and then click on “Attributes” in the top right. You can whatever classes you would like there :)
I’m actually referring to the body tag itself, there should be some class you can act on in your theme to modify the template if there’s a Page Builder layout on the current page, but there’s nothing on the body tag that differentiates pages using the standard text editor and Page Builder’s editor., i.e.
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-
This is indeed how it’s currently setup but I agree, it would be much more useful to know if Page Builder was in use on the post/page in question. Let me take a quick look and see if I can’t work something up in the form of a child theme.
Took a quick look around. I’ll need Greg or Braam to jump in on this. I’ll ask one of them to take a look ASAP.