Abuja Digital Studio · Est. 2018
Start a Project
DocsOThemePatterns and template parts
Reference

Patterns and template parts

OThemeorravo.com/docs/otheme/patterns

Patterns and template parts

Block patterns

OTheme ships 30+ block patterns in /patterns/. WordPress auto-discovers them, so they appear in the block inserter under Orravo and the sub-categories registered in functions.php.

Pattern categories registered by the theme:

  • orravo, orravo-hero, orravo-section, orravo-cta, orravo-content
  • orravo-feature, orravo-pricing, orravo-team, orravo-testimonial
  • orravo-faq, orravo-portfolio, orravo-gallery, orravo-contact
  • orravo-about, orravo-process

Examples include hero-cover-fullbleed.php, pricing-with-toggle.php, team-grid-overlay.php, feature-grid-3.php, cta-stacked-buttons.php, faq-split-layout.php, stats-strip.php, gallery-justified.php.

Template parts

The theme keeps a small set of partials in /template-parts/:

  • post-card.php, post-card-featured.php, post-card-list.php
  • orv-subnav.php

Post cards read their meta toggles directly from theme settings via orv_render_post_meta(). The toggles live under Global Styles or the related dashboard screens:

  • orv_blog_show_category
  • orv_blog_show_author
  • orv_blog_show_date
  • orv_blog_show_read_time
  • orv_blog_show_comment_count

Page templates

The theme provides three named templates you can pick under Page Attributes:

  • template-orv-home.php
  • template-orv-landing.php
  • template-orv-contact.php

There is also page-orv-canvas.php - a blank canvas used by the page builder when no header or footer should render.

Adding a section type

New section types are registered through the documented orv_pb_section_types filter in orravo-page-builder/includes/class-orv-pb-sections.php. The Demos Pack v3 plugin uses this same surface to add 10 bespoke sections.

Patterns and template parts · OTheme Docs | Orravo