Mogul Featured Image Help Please

I’m building a site with Personify, Mogul.

I’m using the Blog Hero archive layout for the blog. Most of my client’s posts do not have a featured image. So, I’m trying to set them up to default to a certain image when they don’t have a featured image (this default is based on the category of the post – essays have your bookshelf image, short stories have the handwriting image, reflections category has the journal writing image).

I managed to get this to work in the single layouts. But I’m trying to do the same in the Archive layout, and not yet successful. Here’s what I did:

I went to the #Blog component document in Cornerstone. In the Personify: Posts (Hero Feed), I set the image you already had to conditionally appear if the featured image is set. Then, I made 3 copies of that same image element, and replaced the dynamic content image with the image I want to use for that category. Each of these image elements are conditionally set to “Featured image is NOT set” and “Post Category is Essay” (for the bookshelf image) ; “Featured image is NOT set” and “Post Category is Short Stories” (for the handwriting image); or “Featured image is NOT set” and “Post Category is Reflections” (for the journal writing image).

None of these images are appearing at redesign.visualspring.net/varga/blog like I’d expect.

What am I missing?

Hey @capodanno,

Thanks for writing in!

It would help if you were using Post(has term) Essay as your condition.

Kindly let us know how it goes.

I made that change to all three, and it did not work. For example, please see this page http://redesign.visualspring.net/varga/category/reflections/

All of these posts (except the sample post) should have the journal writing image, but they don’t show any image at all.

Hello @capodanno,

This is because you have included the placeholder images in the same Image Wrapper element. Your structure should be like this:

Screenshot 2024-08-16 103106

The Image Wrapper will contain the Featured Image and then the No Featured element will display when there is no featured image on the post thus displaying the placeholders.

Hope this makes sense.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.