Add default image to certain category

In my site, there are two categories services and carpooling. Carpooling has 2 sub categories> Request a ride, offer a ride. I wanna have a default image for the listings under categories request a ride, offer a ride . All the listings under req a ride and offer a ride will have a same default image.

Currently I am using js to change image dynamically on the front end but its not very efficient. I can change the image on individual listings but seem to have issue with card view.

it would be better to have another solution for the problem.

Hi,

If you’re familiar with PHP or have a developer, you can overwrite the template parts listing/view/block/listing-image.php using the child theme How to override template parts - HivePress Help Center. Inside, you can already check the category and show other images instead of the placeholder.

​I hope this is helpful to you.

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