1"use strict";(globalThis.webpackChunkbuilderius=globalThis.webpackChunkbuilderius||[]).push([[9776],{8453:(e,t,n)=>{n.d(t,{R:()=>l,x:()=>r});var s=n(6540);const i={},a=s.createContext(i);function l(e){const t=s.useContext(a);return s.useMemo(function(){return"function"==typeof e?e(t):{...t,...e}},[t,e])}function r(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:l(e.components),s.createElement(a.Provider,{value:t},e.children)}},9101:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>o,contentTitle:()=>r,default:()=>d,frontMatter:()=>l,metadata:()=>s,toc:()=>c});const s=JSON.parse('{"id":"templates/template-single-page","title":"Single Page Template","description":"What it\'s for: Displaying individual static pages (post_type=\'page\' only) - your About, Contact, Services, and other standalone pages","source":"@site/docs/templates/single-page.md","sourceDirName":"templates","slug":"/templates/template-single-page","permalink":"/docs/templates/template-single-page","draft":false,"unlisted":false,"tags":[],"version":"current","frontMatter":{"id":"template-single-page","title":"Single Page Template"},"sidebar":"docs","previous":{"title":"Single Post Template","permalink":"/docs/templates/template-single-post"},"next":{"title":"Single CPT","permalink":"/docs/templates/template-single-cpt"}}');var i=n(4848),a=n(8453);const l={id:"template-single-page",title:"Single Page Template"},r=void 0,o={},c=[{value:"Examples of when this template appears:",id:"examples-of-when-this-template-appears",level:2},{value:"What dynamic data is available:",id:"what-dynamic-data-is-available",level:2},{value:"What you control:",id:"what-you-control",level:2},{value:"Doesn't affect:",id:"doesnt-affect",level:2},{value:"Template Priority: 20",id:"template-priority-20",level:2}];function p(e){const t={a:"a",admonition:"admonition",code:"code",h2:"h2",li:"li",p:"p",strong:"strong",ul:"ul",...(0,a.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(t.p,{children:[(0,i.jsx)(t.strong,{children:"What it's for:"})," Displaying individual static pages (",(0,i.jsx)(t.code,{children:"post_type='page'"})," only) - your About, Contact, Services, and other standalone pages"]}),"\n",(0,i.jsxs)(t.p,{children:[(0,i.jsx)(t.strong,{children:"When it's used:"})," When someone visits any static page on your site through navigation menus, direct links, or search engines"]}),"\n",(0,i.jsxs)(t.p,{children:[(0,i.jsx)(t.strong,{children:"What you can design:"})," The complete layout for how static pages appear - page headers, content areas, contact forms, service descriptions, or whatever elements you want for your static content"]}),"\n",(0,i.jsxs)(t.p,{children:[(0,i.jsx)(t.strong,{children:"Appears when:"})," Any content published as WordPress ",(0,i.jsx)(t.strong,{children:"Pages"})," is visited"]}),"\n",(0,i.jsx)(t.h2,{id:"examples-of-when-this-template-appears",children:"Examples of when this template appears:"}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:'Someone clicks "About Us" in your main navigation and lands on your About page.'}),"\n",(0,i.jsx)(t.li,{children:"That's your Single Page template."}),"\n",(0,i.jsx)(t.li,{children:"Or when someone visits your Contact page through a footer link - they see your Single Page template."}),"\n"]}),"\n",(0,i.jsx)(t.h2,{id:"what-dynamic-data-is-available",children:"What dynamic data is available:"}),"\n",(0,i.jsx)(t.p,{children:"You have access to the current page's complete data"}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:"title"}),"\n",(0,i.jsx)(t.li,{children:"content"}),"\n",(0,i.jsx)(t.li,{children:"featured image"}),"\n",(0,i.jsx)(t.li,{children:"custom fields (ACF/MetaBox)"}),"\n",(0,i.jsx)(t.li,{children:"metadata"}),"\n",(0,i.jsx)(t.li,{children:"parent/child page relationships"}),"\n"]}),"\n",(0,i.jsx)(t.admonition,{title:"Pro feature",type:"info",children:(0,i.jsxs)(t.p,{children:["You can also query related pages, page hierarchies, and custom field data all within the context of that specific page. ",(0,i.jsx)(t.a,{href:"#",children:"Learn more about using dynamic data \u2192"})]})}),"\n",(0,i.jsx)(t.h2,{id:"what-you-control",children:"What you control:"}),"\n",(0,i.jsxs)(t.p,{children:[(0,i.jsx)(t.strong,{children:"Everything on individual static pages"})," - headers, content presentation, contact forms, service listings, team member profiles. You design the entire experience for people viewing your static content."]}),"\n",(0,i.jsx)(t.h2,{id:"doesnt-affect",children:"Doesn't affect:"}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsxs)(t.li,{children:[(0,i.jsx)(t.strong,{children:"Blog posts"})," - those use Single Post templates"]}),"\n",(0,i.jsxs)(t.li,{children:[(0,i.jsx)(t.strong,{children:"Custom post types"})," (Products, Events) - those use Singular templates"]}),"\n",(0,i.jsxs)(t.li,{children:["Archive pages, search results, or your blog homepage - those need ",(0,i.jsx)(t.strong,{children:"Archive templates"})]}),"\n"]}),"\n",(0,i.jsx)(t.h2,{id:"template-priority-20",children:"Template Priority: 20"}),"\n",(0,i.jsxs)(t.p,{children:["This template has default ",(0,i.jsx)(t.strong,{children:"priority 20"})," in Builderius template hierarchy. It will override templates with higher numbers (like All Singulars at 90, or Entire Website at 100) but gives way to more specific templates with lower numbers like Front Page template at 10."]}),"\n",(0,i.jsxs)(t.p,{children:[(0,i.jsx)(t.strong,{children:"Note:"})," When you design a page or post directly (without using templates), that design always wins regardless of priority numbers. ",(0,i.jsx)(t.a,{href:"edit-a-page",children:"Learn more about designing pages directly \u2192"})]})]})}function d(e={}){const{wrapper:t}={...(0,a.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(p,{...e})}):p(e)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.