Leto 1.0.4 with search function


The search result display bugs from Leto of Desktop version still found into the latest version 1.0.4.
( blog items and shop items)

And the shop items information is too long in the search result , not like blog items clear.

Hello there,

I would like to apologize in advance for the inconvenience. This is a know issue that’ll be fixed in next version update. To temporarily fix it yourself, try adding the below function to your child theme’s functions.php. Or you can use a functionality plugin like Code Snippets without running a child theme.

    add_filter( 'post_class', 'leto_child_extra_post_class', 3, 20 );
    function leto_child_extra_post_class( $classes, $class = '', $post_id = '' ) {

      $product = wc_get_product( $post_id );

      if( $product && is_search()  ) {
        $classes[] = 'hentry';

      return $classes;



Thanks for your help!
I will try it.

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.