Related Posts sometimes missing css styling
-
I am having the oddest issue and I’m stumped on how to fix it.
This worked perfectly previously (aka ‘yesterday and all the days before’) and it’s a theme I’m fiddling with so I know there haven’t been any changes to the theme. On that same note, I might not have updated something if JetPack changed recently that needs updating.
For some pages the block is being created properly (example below) and for others it’s missing the additional style tag. From random sampling, it looks like almost all of the posts are formatting incorrectly.
For the posts where the block is not loaded correctly, the formatting ignores all of the jp settings and defaults to the page style.
Good example:
<div id="jp-relatedposts" class="jp-relatedposts" style="display: block;">
https://www.martha.net/2020/05/of-writing-desks-and-droughts/Bad example:
<div id="jp-relatedposts" class="jp-relatedposts">
https://www.martha.net/2020/05/saturday-story-prompts-2020-05-16/I can’t figure out why one post would get the right format and the other wouldn’t!
Here’s what’s showing for the Styles for the one that works:
element.style { display: block; } #jp-relatedposts { display: none; padding-top: 1em; margin: 1em 0; position: relative; clear: both; } *, :after, :before { box-sizing: inherit; } *, :after, :before { box-sizing: inherit; } user agent stylesheet div { display: block; }Here’s what’s showing for the Styles for the one that’s broken:
element.style { } *, :after, :before { box-sizing: inherit; } *, :after, :before { box-sizing: inherit; } user agent stylesheet div { display: block; }- This topic was modified 6 years ago by .
- This topic was modified 6 years ago by .
- This topic was modified 6 years ago by .
- This topic was modified 6 years ago by . Reason: I hate CSS, arg
- This topic was modified 6 years ago by . Reason: Better title
The page I need help with: [log in to see the link]
The topic ‘Related Posts sometimes missing css styling’ is closed to new replies.