Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello GoriGeek,

    I’m sorry to hear that you’re having trouble. From what you’ve written, it seems that you’re having an issue with showing featured image in search result. Is that correct?
    In that case, Please go through following steps :

    1. First create a child theme. You have to create a child theme visit the link https://codex.www.ads-software.com/Child_Themes

    2. Next, copy file content-search.php from parent folder to child folder. In line 22 of that file replace the code between <div class=”entry-summary”> and </div> with the following code in child theme:
    `<div class=”entry-summary”>
    <?php if ( has_post_thumbnail()): ?>
    <?php the_post_thumbnail(‘medium’); ?>
    <?php endif ?>
    <p class=”medium-thumb”>
    <?php the_excerpt(); ?>
    </p>
    </div><!– .entry-summary –>`

    3. Now, go to Dashboard >> Appearance >> Customize Option >> Themes Options >>Advanced Section. You will find textarea for Custom Css. Place the code below inside Custom Css.

    p.medium-thumb{
      margin-top:10px;
     }

    Hope that it will help in resolving your issue.
    Thanks!!

    Hi i am having trouble with my website. and cannot get the wordpress search to display featured images on the results page. please help as i am new to wordpress and the theme author is not very help in this regard.
    the theme came with its own search function but i prefer to use the wordpress one as it is a widget i can place on the sidebar

    https://www.feminagarments.com

    Hello,
    The default search result won’t display featured image. Please follow the steps I mentioned above to get search display featured images on the results page.

    Thank you!!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘FEATURED IMAGE ON SEARCH RESULTS’ is closed to new replies.