Home>Support>Modify class on if page has Page Builder layout

Modify class on if page has Page Builder layout

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?

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

  1. 8 years, 11 months ago stevesicherman

    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…”

  2. 8 years, 11 months ago neffrey

    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 :)

  3. 8 years, 11 months ago stevesicherman

    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.

    <body class="siteorigin-panels-enabled">

    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">
  4. 8 years, 11 months ago Andrew Misplon
    Hi, I Work Here

    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.

  5. 8 years, 11 months ago Andrew Misplon
    Hi, I Work Here

    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.

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