Page Templates
BuddyX Pro includes multiple page and post templates for different layouts.
Overview
Page templates control the layout structure of individual pages and posts. BuddyX Pro provides templates for:
- Full-width layouts
- Sidebar layouts (left, right, both)
- Custom content widths
Page Templates
Page No Sidebar
File: page-templates/full-width-container.php
Template Name: Page No Sidebar
Full-width page with content contained in the standard container width. No sidebars.
Best for:
- Landing pages
- Sales pages
- Pages using block editor layouts
Page Full Screen
File: page-templates/full-width.php
Template Name: Page Full Screen
True full-width page that stretches edge-to-edge. No container constraints.
Best for:
- Visual showcases
- Full-width block patterns
- Custom designs
Page Left Sidebar
File: page-templates/page-left-sidebar.php
Template Name: Page Left Sidebar
Page content with a sidebar on the left side.
Best for:
- Documentation pages
- Archive-style content
- Pages needing navigation
Page Right Sidebar
File: page-templates/page-right-sidebar.php
Template Name: Page Right Sidebar
Page content with a sidebar on the right side.
Best for:
- Blog-style pages
- Pages with widgets
- Standard content layouts
Page Both Sidebar
File: page-templates/page-both-sidebar.php
Template Name: Page Both Sidebar
Page content with sidebars on both left and right sides.
Best for:
- Complex layouts
- Multi-widget pages
- Dashboard-style pages
Post Templates
Right Sidebar (Default)
File: post-templates/post-right-sidebar.php
Template Name: Right Sidebar
Standard post layout with sidebar on the right.
Left Sidebar
File: post-templates/post-left-sidebar.php
Template Name: Left Sidebar
Post layout with sidebar on the left side.
Both Sidebar
File: post-templates/post-both-sidebar.php
Template Name: Both Sidebar
Post layout with sidebars on both sides.
Full Width – Small Container
File: post-templates/post-full-small.php
Template Name: Full Width – Small container
Full-width post with narrow content width. Good for readability.
Full Width – Large Container
File: post-templates/post-full-large.php
Template Name: Full Width – Large container
Full-width post with wide content width. Good for media-rich content.
Applying Templates
For Pages
- Edit your page
- In the right sidebar, find Page Attributes
- Click the Template dropdown
- Select your desired template
- Click Update
For Posts
- Edit your post
- In the right sidebar, find Post Attributes or Template
- Select your desired template
- Click Update
Default Settings
You can set default layouts in the Customizer:
Default Page Sidebar
- Go to Appearance → Customize → Sidebar
- Find Default Sidebar Layout
- Choose your default
- Click Publish
Default Post Sidebar
- Go to Appearance → Customize → Sidebar
- Find Single Post Sidebar Layout
- Choose your default
- Click Publish
Template Hierarchy
Templates are applied in this order of priority:
- Template assigned to specific page/post (highest)
- Customizer default for content type
- Theme default (lowest)
Sidebar Widget Areas
Different templates use different widget areas:
| Template | Widget Area Used |
|---|---|
| Left Sidebar | Main Sidebar |
| Right Sidebar | Main Sidebar |
| Both Sidebar | Main Sidebar + Right Sidebar |
Custom Templates
Creating Custom Templates
Create custom templates in a child theme:
Page Template:
<?php
/**
* Template Name: My Custom Template
*/
get_header();
?>
<div class="my-custom-layout">
<!-- Your custom layout -->
<?php the_content(); ?>
</div>
<?php
get_footer();
Location: child-theme/page-templates/my-template.php
Integration Templates
BuddyPress Pages
BuddyPress pages have their own sidebar settings:
- Appearance → Customize → Sidebar → BuddyPress Sidebar Layout
WooCommerce Pages
WooCommerce pages have their own sidebar settings:
- Appearance → Customize → Sidebar → WooCommerce Sidebar Layout
LearnDash Pages
LearnDash pages have their own sidebar settings:
- Appearance → Customize → Sidebar → LearnDash Sidebar Layout
Responsive Behavior
On mobile devices:
- Sidebars stack below content
- Full-width templates remain full-width
- Container widths adjust responsively
Related Documentation
- Sidebar Options – Sidebar configuration
- Block Patterns – Pre-built layouts
- Child Theme – Creating custom templates
