Home Forums Theme Support Dokan images in search results

This topic is: not resolved

This topic contains 5 replies, has 3 voices, and was last updated by  towhid 3 years, 11 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #45762

    obiora
    Member
    Post count: 57

    please how do i make product images show in search results

    #45801

    towhid
    Participant
    Post count: 4505

    Hello Obiora,

    If you are using dokan theme then please navigate to themes/wedevs-dokan/content.php and find out below line

    <?php the_excerpt(); ?>

    And replace the following line of code with the above line.

    <div style="float:left;" class="thickbox">
                    <a href="<?php the_permalink() ?>" rel="bookmark"><?php the_post_thumbnail('thumbnail'); ?></a>
                <?php the_excerpt(); ?>
                </div>

    Thanks

    #52062

    Kerstin
    Member
    Post count: 13

    Thank you very much for that.
    I changed the code to this – and not sure if I did it right:

    < ?php if ( is_search() ) : // Only display Excerpts for Search ?>


    < ?php else : ?>

    Now when I type the search term ‘horse' in my website's search box (http://unique-equestrian-gifts.com)
    I get a very strange looking result with different fonts and lines going through the thumbnails. Do you know how to fix this?
    Thanks,
    Kerstin

    #52073

    towhid
    Participant
    Post count: 4505

    Hello Kerstin,

    Use following CSS in the theme's style.css and let me know the result please.

    .thickbox {
      float: none !important;
    }
    #52130

    Kerstin
    Member
    Post count: 13

    Unfortunately, this code doesn't work. The same problem is still there. Have you any other ideas?
    Thanks!

    #52142

    towhid
    Participant
    Post count: 4505

    Please provide your login details by using this form: http://wedevs.com/provide-login-details/. I will have a look what is going wrong.

    Thank you ๐Ÿ™‚

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘images in search results’ is closed to new replies.