Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #879990
    It’s me
    Participant

    Hi, I’m using this to display in the child theme to display the product search result.
    I have some question please:
    1. How do I style it so it’ll display 3 products per row. Attached is the issue.

    function searchfilter($query) {
    if ($query->is_search && !is_admin() ) {
    $query->set(‘post_type’,array(‘product’));
    }
    return $query;
    }
    add_filter(‘pre_get_posts’,’searchfilter’);

    function woocommerce_search_class( $classes ) {

    if ( is_search() ) {
    $classes[] = ‘woocommerce’;
    }
    return $classes;

    }

    add_filter( ‘body_class’, ‘woocommerce_search_class’ );

    #879997
    It’s me
    Participant

    screenshot attached

    #880754
    Darshana
    Moderator

    Hi there,

    Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

    #884216
    It’s me
    Participant
    This reply has been marked as private.
    #885091
    Rad
    Moderator

    Hi there,

    Search template doesn’t use the masonry layout that is common to blog, archives, portfolio, and shop page. If you really wish to make your search page as masonry, then you’ll need to do it with hard coding on templates.

    Would you mind providing your admin and FTP login credentials in private reply? I just like to check if it’s possible.

    Thanks!

  • <script> jQuery(function($){ $("#no-reply-879990 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>