Skip to content

feat: add an option to turn the homepage into a no-header no-footer splash page#2602

Merged
laurelfulford merged 3 commits intotrunkfrom
feat/splash-homepage
Dec 1, 2025
Merged

feat: add an option to turn the homepage into a no-header no-footer splash page#2602
laurelfulford merged 3 commits intotrunkfrom
feat/splash-homepage

Conversation

@laurelfulford
Copy link
Contributor

All Submissions:

Changes proposed in this Pull Request:

This PR adds a Customizer option to make the front page a 'splash page' with no header and no footer - due to how WordPress themes work, we can't just assign the existing template.

It also fixes some styling issues in Newspack Nelson with the No Header No Footer template.

See NPPM-2421 .

How to test the changes in this Pull Request:

  1. Apply this PR & run npm run build.
  2. Go to Customizer > Homepage Settings, and confirm there's an option to "Make the homepage a splash page", and that it's not checked.
CleanShot 2025-11-27 at 13 25 26
  1. Check the option, and click "Publish".
  2. View the front page, and confirm there is no header or footer.
  3. Edit the homepage, and add a full width block as the first and last block in the content, and add some content in between -- the full width block should be something visible, like a group block with a background, or a cover block.
  4. View on the front end, and confirm the first block touches the top of the browser window. The last block should also touch the bottom of the browser window if there's enough content (if you have to scroll to it), and if you're viewing it in an incognito window -- otherwise the Edit link from the template will add a small gap.
CleanShot 2025-11-27 at 13 31 25
  1. Create a static page and assign the No Header No Footer template; add similar content (the full-width block at the start and end).
  2. View on the front-end and confirm it looks the same as the front page, except the content area is narrower (780px instead of 1200px).
  3. Switch the site to Newspack Nelson and retest both your homepage and static page - confirm they look the same and don't have the extra padding/spacing that this theme normally has.
  4. Click around on regular posts/pages with Nelson still assigned and make sure things look okay.
  5. Switch back to one of the other themes; click around on regular posts and pages and make sure things still look okay.

Other information:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes, as applicable?
  • Have you successfully ran tests with your changes locally?

@laurelfulford laurelfulford requested a review from a team as a code owner November 27, 2025 22:07
@laurelfulford laurelfulford added the [Status] Needs Review The issue or pull request needs to be reviewed label Nov 27, 2025
@github-actions github-actions bot added [Status] Approved The pull request has been reviewed and is ready to merge and removed [Status] Needs Review The issue or pull request needs to be reviewed labels Nov 28, 2025
@laurelfulford
Copy link
Contributor Author

Thanks @leogermani!

@laurelfulford laurelfulford merged commit 3508b6d into trunk Dec 1, 2025
6 checks passed
@laurelfulford laurelfulford deleted the feat/splash-homepage branch December 1, 2025 20:23
@github-actions
Copy link

github-actions bot commented Dec 1, 2025

Hey @laurelfulford, good job getting this PR merged! 🎉

Now, the needs-changelog label has been added to it.

Please check if this PR needs to be included in the "Upcoming Changes" and "Release Notes" doc. If it doesn't, simply remove the label.

If it does, please add an entry to our shared document, with screenshots and testing instructions if applicable, then remove the label.

Thank you! ❤️

matticbot pushed a commit that referenced this pull request Dec 11, 2025
# [2.16.0-alpha.1](v2.15.3...v2.16.0-alpha.1) (2025-12-11)

### Features

* add an option to turn the homepage into a no-header no-footer splash page ([#2602](#2602)) ([3508b6d](3508b6d))
@matticbot
Copy link
Contributor

🎉 This PR is included in version 2.16.0-alpha.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

matticbot pushed a commit that referenced this pull request Jan 5, 2026
# [2.16.0](v2.15.3...v2.16.0) (2026-01-05)

### Features

* add an option to turn the homepage into a no-header no-footer splash page ([#2602](#2602)) ([3508b6d](3508b6d))
@matticbot
Copy link
Contributor

🎉 This PR is included in version 2.16.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released on @alpha released [Status] Approved The pull request has been reviewed and is ready to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants