Featured Images in search results Rocked Theme

I see another thread which doesn’t seem to function for Rocked. But is there a way to show featured images in the search results? All it shows is the title and snippet.

Hello there,

To display the featured images in search page, you’ll need to edit the search.php template file. To retain the changes you did in there while performing theme update in the future, you must edit it in the child theme mode. The first thing to do is to create a child theme. In your child theme folder, you’ll need a copy of the search.php file from parent theme. Then find this line:


get_template_part( 'template-parts/content', 'search' );

and replace it to:


get_template_part( 'template-parts/content' );

Lastly, install and activate your child theme.

Regards,
Kharis

Works perfectly, thanks!

You’re welcome!

Please let us know in a new topic if you have any further questions, or if we can provide you with any other assistance.

Regards,
Kharis