Rebalance Theme "Blog Posts" Block
-
I have a site which uses the Rebalance theme, and the “Blog Posts” block will not display the featured image of posts on that site. It works in the editor view, but not when the post is published, or even in the Preview window. I suspect it is a problem with the theme, because this block works just fine on my other blogs which use different themes.
Here is an example where it doesn’t render: https://medicineandfaith.com/2020/09/18/it-can-be-done/
And another post on a different site where it does render: https://sanderson.band/2020/09/05/the-ball-machine/
Or am I just doing it wrong somehow?
The blog I need help with is: (visible only to logged in users)
-
Hey there @alansandersonmd, that is odd indeed.
It could be that the other posts simply don’t have featured set, or it could be an issue with the block. Would you mind removing and re-adding the block itself to see if that helps?
-
I can verify that all of the posts have the Featured image set. And the same behavior is seen in multiple posts:
Removing and replacing the block doesn’t fix it.
-
You can turn featured images back on for individual posts here, under the Content Options tab on the left:
https://wordpress.com/customize/medicineandfaith.comJust put a check box in the setting shown here, and the block will show featured images same as it does in the editor view.
Hope this helps!
-
Hmm. That indeed fixes the problem, but causes another.
Now I have redundant images at the top of every post (because I have been including the featured image as an image block at the top of every post), so if I want to enable this fix I have to edit every post to remove the redundancy.
Nuts. That will take me a while.
But thanks for your help! Now the problem is mine to deal with. :)
-
Meh, I don’t like this solution. The featured image in this theme doesn’t display the way I want it to, which is why I had disabled that checkbox in the first place.
Why does this particular block depend on that theme-wide option? That doesn’t make sense. If you specify in the block settings that you want to display images, then it should display images.
Sorry to complain.
Maybe it’s time for me to go theme shopping again.
-
This option sets the featured image preference for single posts.
If you add a blog posts block, or a display posts shortcode, to a post, that block/shortcode will respect the preference for the post, so the block/shortcode won’t show any featured images either.
It works the same way if you add the block to a page, and have the preference set to not display featured images on a page.
In other words, the block setting comes second. The setting for the post itself takes priority.
This will happen in any theme that supports content options, and where you disable the display of featured images on posts or pages.
I’m curious: Why are you adding the blog posts block to posts? That block is really intended for use on static pages, rather than on posts.
If you can give a bit more detail on what your end goal is, we might be able to suggest a different way to do the same thing.
-
It is a useful block on blog posts (or, it would be if the images worked, that is). It is a nice visual way to catch the reader’s attention at the end of a post and to offer them related or recent content that might keep them on the site for another click. I don’t use a lot of static pages on this blog — it is all about the blog content, and this block gives me a way to promote that content within other blog posts.
The “Post Carousel” and “Latest Posts” blocks have the same problem of not showing the featured image, probably for the same reason. I prefer the visual layout options of the Blog Posts block anyway.
Is there a way to disconnect the blog posts block from the inherited settings? The local setting of that block should override the post setting, just like in CSS. That’s what “cascading” means, after all. And if you can’t override the inherited setting, then it makes the block basically useless for my use case.
Thanks for your help and replies!
-
- The topic ‘Rebalance Theme "Blog Posts" Block’ is closed to new replies.