No replies
hardy66
hardy66's picture
Offline
newbie
london
Last seen: 7 weeks 4 days ago
london
Timezone: GMT+2
Joined: 2023-02-03
Posts: 1
Points: 2

Hi, I am trying to get my thumbnail search results in rows and columns as opposed to the current layout which shows them one on top of the other.
RE: https://heritagecountrypottery.com/?s=slipware.
I believe this can be achieved with css but cannot work it out.
Please see my php and css below

PHP

<a href="<?php the_permalink(); ?>" title="<?php the_title();?>">
<?php if ( has_post_thumbnail() ): ?>
   <div class="search-thumbnail">
       <?php the_post_thumbnail(); ?>
   </div>
<?php endif; ?>
</a>

CSS

.search-thumbnail {
 width: 35%;
}