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.

Modify class on if page has Page Builder layout

10 years ago · Last reply by Andrew Misplon 10 years ago

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.

Need fast email support? Get SiteOrigin Premium

Replies

5
  1. stevesicherman 10 years, 4 months ago

    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. neffrey 10 years, 4 months ago

    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. stevesicherman 10 years, 4 months ago

    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. Andrew Misplon Staff 10 years, 4 months ago

    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. Andrew Misplon Staff 10 years, 4 months ago

    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.

Have a different question or issue?

Start New Thread