Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Related Posts Block: No styles on archive pages #14063

Open
scottsweb opened this issue Nov 18, 2019 · 2 comments
Open

Related Posts Block: No styles on archive pages #14063

scottsweb opened this issue Nov 18, 2019 · 2 comments
Labels
[Feature] Related Posts [Focus] Blocks Issues related to the block editor, aka Gutenberg, and its extensions developed in Jetpack [Pri] Low [Status] Stale [Type] Bug When a feature is broken and / or not performing as intended

Comments

@scottsweb
Copy link
Contributor

Whilst working through #14020 I noticed that the styles for the related post block are not loaded on the archive page, so in twentytwenty it currently looks like this on the homepage:

Screenshot 2019-11-18 at 15 44 51

Steps to reproduce the issue

  1. Go to wp-admin and create a new post
  2. Add the Jetpack related posts block to the post and set it up how you like
  3. Use any theme that shows the entire the_content on the archive page
  4. See if the correct styles are shown on the single post
  5. Compare those styles to the archive view

What I expected

I expect the block to look the same regardless of where it appears on my site. I have a feeling this may impact other blocks too. It is possibly being caused by the conditional style loading in jetpack-related-posts.php line 1658:

		$enqueue_script = ! ( class_exists( 'Jetpack_AMP_Support' ) && Jetpack_AMP_Support::is_amp_request() );

What happened instead

The block looks incorrect.

@scottsweb scottsweb added [Type] Bug When a feature is broken and / or not performing as intended [Feature] Related Posts labels Nov 18, 2019
@jeherve jeherve added [Focus] Blocks Issues related to the block editor, aka Gutenberg, and its extensions developed in Jetpack [Pri] Low labels Nov 18, 2019
@jeherve
Copy link
Member

jeherve commented Nov 18, 2019

Noting that this is specific to related posts added via a block. We don't display "regular" (i.e. bottom-of-post) related posts on archive pages.

@stale
Copy link

stale bot commented May 16, 2020

This issue has been marked as stale. This happened because:

  • It has been inactive in the past 6 months.
  • It hasn’t been labeled `[Pri] Blocker`, `[Pri] High`.

No further action is needed. But it's worth checking if this ticket has clear reproduction steps and it is still reproducible. Feel free to close this issue if you think it's not valid anymore — if you do, please add a brief explanation.

@stale stale bot added the [Status] Stale label May 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Related Posts [Focus] Blocks Issues related to the block editor, aka Gutenberg, and its extensions developed in Jetpack [Pri] Low [Status] Stale [Type] Bug When a feature is broken and / or not performing as intended
Projects
None yet
Development

No branches or pull requests

2 participants