Hi,
We’ve started specifying per-category background images for categories, and for the most part they work fine:
all posts in a category display the same background image as the category page for that category.
However, we have one category where we are often seeing apparently random images as the background image (they aren’t the featured image for the post, or images that are used in the post as far as I can tell).
For example, posts in this category seem fine:
https://thewhoot.com/crochet
Whereas for this category they are pretty random:
https://thewhoot.com/whoot-news/recipes
I’d wondered if it was because Recipes is a sub-category, but we have another subcategory (Craft) that also works fine.
The only difference I can think of is that we sometimes have Recipe posts by different authors, which we tend not to do in any other category. But I couldn’t see any strong correlation between post author and background image used.
I couldn’t see anything in the theme panel, category settings, post settings or user settings that might be causing this.
What would be the problem?
Many thanks,
Peter.
Hello,
The category background image is set exclusively from the category settings in our theme. If you did not add any manual background image for your categories, then the background could come from an external plugin. https://www.screencast.com/t/cxFceqgGU
There cannot be random background images on the category page.
A post on the other hand can grab the background from it’s primary category like mentioned here: https://forum.tagdiv.com/primary-category/
Thank you!
Hi Bogdan,
Thanks, that link to the Primary Category page was helpful.
There are no other plugins affecting the backgrounds. I found that manually setting the primary category using the Newspaper primary category selector on the posts that were displaying incorrect background images fixed the problem.
Do you know why this would affect some posts and not others? For example, many of our posts are in multiple categories but we only seem to be having this problem with posts in that one particular category (Recipes). The manual selection of primary category is not something we generally need to do.
Many thanks,
Peter.