CMB2 Metabox Fields
CMB2 (Custom Metaboxes 2) is a WordPress toolkit that adds extra field boxes to the page editor. On osps26.com, the Home, Services, and Contact page templates are filled almost entirely from these boxes — not from the main content area.
Where the boxes appear
Section titled “Where the boxes appear”- Go to Pages → All Pages and click Edit on Home, Services, or Contact Us.
- Confirm the Template on the right (under Page or Page attributes) is one of:
- OSPS26 — Home
- OSPS26 — Services
- OSPS26 — Contact
- Scroll below the main editor. You’ll see a stack of boxes named like Section 01 — Hero, Section 02 — Trust Strip, and so on.
- Each box starts collapsed. Click the box title to open it, edit the fields, then click Update.
Only the boxes that belong to that page’s template are shown. Editing Home will not show the Services or Contact boxes, and the other way around.
The parent Pegasus theme also adds two boxes on most pages: Pegasus Page Options and Additional Header Options. Those control width and the page header, not the OSPS26 section copy. See Page Options and Headers.
Which page uses which boxes
Section titled “Which page uses which boxes”| You are editing… | Template | Field prefix (for developers) | Guide |
|---|---|---|---|
| Home | OSPS26 — Home (tpl_home.php) |
osps_home_ |
Homepage fields |
| Services | OSPS26 — Services (tpl_services.php) |
osps_svcs_ |
Services page fields |
| Contact Us | OSPS26 — Contact (tpl_contact.php) |
osps_contact_ |
Contact page fields |
The boxes are defined in the child theme file inc/cmb2-osps26.php. Editors can ignore the IDs and use the field labels in the dashboard.
Field types you’ll see
Section titled “Field types you’ll see”| Type | What it looks like | Tips |
|---|---|---|
| Text | A single line | Headlines, button labels, short titles. |
| Text URL | A single line meant for a link | Accepts a path (/services/), a full URL, or sometimes tel: and mailto:. Some button URL fields are plain Text so those special links work. |
| Textarea / Textarea (small) | A multi-line box | Paragraphs. A few “feature points” fields also allow simple HTML such as <b>. |
| Select | A dropdown | Used for icons and color schemes. The icons are drawn by the theme; pick the one that matches the topic. |
| Checkbox | A tick box | For example, reverse a service-block layout, or use a tinted background. |
| Group (repeatable, sortable) | A list of cards with Add / Remove and a drag handle | Service cards, stats, contact cards, and so on. Open a card, fill it in, add another if you need one. You can drag to reorder. |
| Repeatable text | A list of single lines | The homepage “cert chips” work this way. Use Add chip for each extra item. |
Tips and gotchas
Section titled “Tips and gotchas”- Save, then preview, then cache. Click Update, preview the page, then flush the SiteGround Dynamic Cache so visitors aren’t stuck on the old version.
- Don’t change the Template of Home, Services, or Contact unless you’ve talked to us. Switching it away from the OSPS26 template hides the CMB2 boxes and will break the layout.
- Don’t use SiteOrigin or the main content box to rebuild these three pages. The layout comes from the template and the metaboxes.
- Groups are sortable. Use the drag handle rather than deleting and retyping a card to move it.
- Icons come from a fixed list (mammography, CT, MRI, email, cards, and so on). There isn’t a file-upload field for a custom icon. If you need a new icon, ask us to add it to the child theme.
- Button links: for a page on this site use a path like
/services/or/contact-us-payment/. For a phone button usetel:+18137432373. For email usemailto:Lei@osps26.com. For a section on the same page use an anchor like#accreditation. - After CSS or theme changes, hard-refresh your browser (Ctrl/Cmd + Shift + R) as well as clearing the server cache.
Related
Section titled “Related”- Pegasus Options (site-wide logo, colors, header)
- Page Options and Headers
- Gravity Forms
- Clear the SiteGround cache