Skip to content
  1. Extras
  2. PageBuilder
  3. Section catalog
  4. Pro
  5. Quote

Quote ​

Section quote shows one quote. Chunk: pagebuilderpro_quote. Requires PageBuilder Pro.

Quote

Where it fits ​

  • A highlighted client line
  • An article epigraph
  • One recommendation without team cards

Fields ​

FieldTypeRequiredPurpose
texttextareayesQuote text
authortextnoAuthor
roletextnoRole
avatarimagenoAvatar

Render ​

The root is a <figure>. The quote sits in a <blockquote>. The figcaption appears when author, role, or avatar is set. The avatar goes through pagebuilder_partial_image. Empty text fails publish: the field is required.

Section data ​

json
{
  "text": "We built the page in a day",
  "author": "Anna",
  "role": "Editor",
  "avatar": { "url": "assets/images/anna.jpg" }
}

Chunk template ​

Fenom chunk pagebuilderpro_quote:

fenom
<figure class="pb-section pb-section--quote pb-quote{if $cssClass} {$cssClass|escape}{/if}" data-pb-section="quote"{if $id} id="pb-{$id|escape}"{/if}>
  <div class="pb-section__inner">
    <blockquote class="pb-quote__text">
      <p>{$text|escape}</p>
    </blockquote>
    {if $author || $role || $avatar}
      <figcaption class="pb-quote__meta">
        {if $avatar}{include 'pagebuilder_partial_image' image=$avatar alt=$author class='pb-quote__avatar'}{/if}
        <div>
          {if $author}<cite class="pb-quote__author">{$author|escape}</cite>{/if}
          {if $role}<span class="pb-quote__role">{$role|escape}</span>{/if}
        </div>
      </figcaption>
    {/if}
  </div>
</figure>

Similar sections ​