Tagged: x
-
AuthorPosts
-
April 13, 2016 at 8:35 am #879990
It’s meParticipantHi, 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’ );
April 13, 2016 at 8:36 am #879997
It’s meParticipantscreenshot attached
April 13, 2016 at 3:03 pm #880754
DarshanaModeratorHi 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.
April 15, 2016 at 7:52 am #884216
It’s meParticipantThis reply has been marked as private.April 15, 2016 at 8:40 pm #885091
RadModeratorHi 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!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-879990 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
