Customizing PeepSo Templates

When using the PeepSo plugin with the Reign theme, you may want to customize the templates to fit your needs. This guide outlines how to override the PeepSo template files within the Reign theme.

Overriding PeepSo Templates

To override the PeepSo templates, create the following directory structure within your theme and copy the corresponding files from the PeepSo plugin.

Directory Structure

reign-child/
└── peepso/
    ├── general/
    │   └── navbar.php
    ├── groups/
    │   └── group-header.php
    ├── profile/
    │   └── focus.php
    ├── widgets/
    │   └── me.tpl.php
└── template-parts/
    └── peepso/
        ├── focus.php
        ├── group-header.php
        └── navbar.php

Steps to Override

  1. Copy the template files: Copy the desired template files from the PeepSo plugin directory (wp-content/plugins/peepso-core) to the corresponding directories in your theme.
  2. Customize the template files: Edit the copied template files in your theme to meet your customization requirements.

Example File Paths

  1. General Navbar Template:
    • Original Path: wp-content/plugins/peepso-core/general/navbar.php
    • New Path: reign-child/peepso/general/navbar.php
  2. Groups Group Header Template:
    • Original Path: wp-content/plugins/peepso-core/groups/group-header.php
    • New Path: reign-child/peepso/groups/group-header.php
  3. Profile Focus Template:
    • Original Path: wp-content/plugins/peepso-core/profile/focus.php
    • New Path: reign-child/peepso/profile/focus.php
  4. Widgets Me Template:
    • Original Path: wp-content/plugins/peepso-core/widgets/me.tpl.php
    • New Path: reign-child/peepso/widgets/me.tpl.php
  5. Template Parts Focus Template:
    • Original Path: wp-content/plugins/peepso-core/template-parts/peepso/focus.php
    • New Path: reign-child/template-parts/peepso/focus.php
  6. Template Parts Group Header Template:
    • Original Path: wp-content/plugins/peepso-core/template-parts/peepso/group-header.php
    • New Path: reign-child/template-parts/peepso/group-header.php
  7. Template Parts Navbar Template:
    • Original Path: wp-content/plugins/peepso-core/template-parts/peepso/navbar.php
    • New Path: reign-child/template-parts/peepso/navbar.php

By following these steps, you can ensure that your customizations remain intact even when the PeepSo plugin or the parent Reign theme is updated.

Update on May 22, 2024