Skip to content

Include static page for posts for article transitions#2306

Merged
mukeshpanchal27 merged 1 commit intotrunkfrom
fix/static-page-for-posts-transition
Dec 20, 2025
Merged

Include static page for posts for article transitions#2306
mukeshpanchal27 merged 1 commit intotrunkfrom
fix/static-page-for-posts-transition

Conversation

@westonruter
Copy link
Member

@westonruter westonruter commented Dec 19, 2025

Summary

Fixes #2305

When a static page is used for posts:

image

The BODY element here is:

<body class="blog wp-embed-responsive wp-theme-twentytwentyfive">

However, when showing the latest posts on the homepage, the BODY is:

<body class="home blog wp-embed-responsive wp-theme-twentytwentyfive">

Currently only the home and archive class names are accounted for. The blog class name, which is the only one shown on a static page for posts, was not. This PR fixes that.

@github-actions
Copy link

github-actions bot commented Dec 19, 2025

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: westonruter <westonruter@git.wordpress.org>
Co-authored-by: mukeshpanchal27 <mukesh27@git.wordpress.org>
Co-authored-by: felixarntz <flixos90@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@westonruter westonruter added [Type] Bug An existing feature is broken [Plugin] View Transitions Issues for the View Transitions plugin labels Dec 19, 2025
@westonruter westonruter added this to the view-transitions n.e.x.t milestone Dec 19, 2025
@westonruter westonruter force-pushed the fix/static-page-for-posts-transition branch from a9da23b to bfb1d8d Compare December 19, 2025 04:55
@westonruter
Copy link
Member Author

Build for testing: view-transitions.zip

Copy link
Member

@felixarntz felixarntz left a comment

Choose a reason for hiding this comment

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

@westonruter Great catch!

@mukeshpanchal27 mukeshpanchal27 merged commit 6da5b91 into trunk Dec 20, 2025
13 checks passed
@mukeshpanchal27 mukeshpanchal27 deleted the fix/static-page-for-posts-transition branch December 20, 2025 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Plugin] View Transitions Issues for the View Transitions plugin [Type] Bug An existing feature is broken

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Article view transition does not apply when using a static page for posts

3 participants

Comments