Skip to content

Theme build process#212

Merged
kimcoleman merged 27 commits intostrangerstudios:memberlite-7-0from
RachelRVasquez:theme-build-process
Feb 16, 2026
Merged

Theme build process#212
kimcoleman merged 27 commits intostrangerstudios:memberlite-7-0from
RachelRVasquez:theme-build-process

Conversation

@RachelRVasquez
Copy link
Copy Markdown
Collaborator

@RachelRVasquez RachelRVasquez commented Feb 10, 2026

All Submissions:

Changes proposed in this Pull Request:

  • Deprecates the need for a "blank" page template and replaces it with a custom setting in the document settings for pages
  • Create a separate update file specifically for Memberlite 7.0 so we can create a new file for each version. In this case, we'll be handling colors and backwards compatibility for the blank template and interstitial template for 7.0.
  • Deleted the interstitial page template. I've added a function in the updates so it can save post meta in case we need it, but we've decided not to add a setting at this time.
  • Added a new setting to hide the Prev/Next navigation on pages if the global theme mod for it is set to true. If it's not, then this setting won't display at all.
    -- Note that this navigation only appears on child pages. Is this something we want to make clearer in the setting's label and in customizer?
  • Set up a small build process so that we can build the editor JS and for future block development.

How to test the changes in this Pull Request:

  1. Checkout this branch.
  2. On the WP admin, navigate to a page you want to edit.
  3. On the right side of the editor, in the "Page" tab, if you scroll past the featured image, status, publish etc. settings, there will be a new section titled, "Template Settings." If it's collapsed, you can expand it. It's also easy to re-name if we want to tweak that.
  4. There are two new toggles. One to hide the header and another to hide the footer. (Three toggles if the "Show Prev/Next on Single Pages" in the customizer is checked/true.)
  5. Toggle them on, and click "Save" on your page. Look at the page on the front-end. Confirm that things are showing/hiding based on the toggle correctly without any errors in the debug log.
image image

Other information:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you successfully run tests with your changes locally?

Changelog entry

Deleted blank page template. Deleted the interstitial page template. Created a new update file for Memberlite 7.0 and added fallback functionality for any pages that were using either the blank or interstitial template. Added webpack and wp-scripts for building files. Added custom settings to the document settings to toggle header/footer visibility, and to toggle Prev/Next page navigation off.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR replaces the deprecated “Blank” page template with per-page editor toggles (hide header/footer), introduces a small JS build pipeline for editor assets, and adds an upgrade routine to migrate existing pages that used the blank template.

Changes:

  • Removed templates/blank.php and added page-level header/footer visibility toggles via block editor Document Settings.
  • Added a webpack/wp-scripts build setup for editor JS (source in src/, output expected in build/).
  • Added an update routine to migrate published pages using the deprecated blank template to the new meta-based settings.

Reviewed changes

Copilot reviewed 12 out of 15 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
webpack.config.js Adds wp-scripts-based webpack entry for editor custom settings bundle.
templates/blank.php Removes the deprecated Blank page template.
src/editor/custom-settings.js Registers a Gutenberg document settings panel with header/footer toggles.
package.json Introduces npm scripts and @wordpress/scripts dependency.
inc/updates.php Adds migration to set new meta flags for pages using the old blank template; updates db version gating.
inc/editor-settings.php Registers the meta keys, enqueues the built editor script, and exposes helpers for templates.
header.php Switches from template-based checks to meta-based header visibility checks; adjusts wrapper logic.
footer.php Switches from template-based checks to meta-based footer visibility checks; adjusts wrapper logic.
components/page/content-page.php Updates page navigation condition to use new header/footer visibility helpers.
functions.php Loads the new editor settings module.
.gitignore Ignores build/ output directory.
docs/build-process.md Documents the new build workflow.
docs/project-structure.md Adds repository structure documentation.
docs/customizer.md Adds customizer architecture documentation.
docs/README.md Adds an index/entry point for docs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@RachelRVasquez RachelRVasquez marked this pull request as draft February 12, 2026 00:56
@RachelRVasquez RachelRVasquez marked this pull request as ready for review February 12, 2026 00:56
@RachelRVasquez RachelRVasquez marked this pull request as draft February 12, 2026 13:55
@RachelRVasquez RachelRVasquez marked this pull request as ready for review February 13, 2026 03:08
… to the new post meta that matches our new settings
… still there for backwards compatibility but added a comment
…ally registered the existing post meta because the REST API needs to read it (the block editor)
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 18 out of 21 changed files in this pull request and generated 8 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@kimcoleman kimcoleman merged commit 6ae81a6 into strangerstudios:memberlite-7-0 Feb 16, 2026
RachelRVasquez added a commit to RachelRVasquez/memberlite that referenced this pull request Mar 12, 2026
* added simple build process so we can add custom settings

* in the process of replacing conditionals where we check for the blank templat

* created a small helper to get the post meta, swapped page template conditional with helper

* delete blank template

* separate hiding the header and footer into two separate toggles

* add function to replace old post meta tied to the blank page template to the new post meta that matches our new settings

* renamed existing docs to lowercase, moved the editor settings to it's own file in includes

* added docs for the build process

* return early if updates function doesn't find any pages with the blank template

* changes based on co-pilot feedback, mainly re-naming functions and making the returns on the helpers clearer

* fix to path in docs, return early if post type isn't a page in JS, remove the filters from helpers

* return early if assets file doesn't exist for editor settings, add localization to editor settings JS

* renamed function where we register post meta for settings, created a separate update file for memberlite 7.0

* remove interstitial template and any references in code to it, CSS is still there for backwards compatibility but added a comment

* added a function to set post meta where the interstitial template was active for reference, no new setting added

* corrected how I was adding the setting to the document settings for hiding prev/next on pages

* removed checkbox in the metabox we'll be deprecating soon, and officially registered the existing post meta because the REST API needs to read it (the block editor)

* update php doc comments

* tweak comment on function to remove dark css theme mod after branch rebase

* fixes based on more co-pilot feedback

* tweak to meta login conditional

* changes from PR feedback

* added a comment to logic that shows page nav in content-page for clarity

* Adjusting update script to handle swapping page template; New update script for fluid-width template to use template setting; putting latest color migration script in place before merge

* Small wording change for editor panel

* Incrementing db version so pre-release sites get the latest script run

* Moving conditional page nav checks into the function

---------

Co-authored-by: Kim Coleman <kim@strangerstudios.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants